-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show: Migrate metadata to lab toml file
Migrate the show command's metadata to the lab toml file. This can be done by using the nested key feature of viper and toml. For example, the .git/lab/show_metadata.toml file contains comments = true mr49 = 2020-09-16T15:49:07Z issue23 = 2020-09-10T10:22:01Z and the new .git/lab/lab.toml will contain [mr_show] comments = true mr49 = 2020-09-16T15:49:07Z [issue_show] comments = true issue23 = 2020-09-10T10:22:01Z This new model allows for better default command granularity. In the existing show_metadata.toml "comments = true" affects both the 'mr show' and 'issue show' commands. In the new lab.toml the setting can be set for each command. Centralizing around lab.toml will also allow for future changes to the config layout. I am not writing a show_metadata.toml to lab.toml conversion function because the metadata functionality is very new. Migrate the show command metadata to the lab toml file. Signed-off-by: Prarit Bhargava <prarit@redhat.com> this mr_show and issue_show
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters