-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: add
config
command to CLI (#108)
* 🚨 Fix: changed Println to Printf in jobListCmd Eliminate simple linter warning about returning value using `Println` function. * ✨ Feat: add new `config` command to CLI Added a new `config` command to CLI - with following sub-commands: `config show` , `config clean` . It is the basis for a user to look at and alter settings of their configuration from the command line without having to navigate the OS. * ✨ Feat: add new functionality to `config clean` CLI cmd This commit adds multiple quality of life enhancements for manuscript removal from the config.ini. the clean command can now specify specific manuscripts, bypass interactive mode, remove all manuscripts from a config file, etc. * ✨ Feat: add `--summary` flag to CLI `config show` cmd This additional flag prints out a beautified summary of the config file which shares where manuscripts are located - what they're configrued to/some basic information output. Implemented as a useful debugging tool. * 🎨 Chore: clean up commander.go This commit adds additional structure to commander.go to keep it clean as the number of commands increases. In particular, it adds comments and breaks things into helper functions that clarify things throughout. * 🎨 [chore] Add comments and fix nomenclature This commit renames ShowConfigSummary to ConfigShowSummary for consistency of the config_manuscript.go file. IT also adds notations and comments throughout so that the logic being used is more apparent to first time readers.
- Loading branch information
1 parent
1d606e1
commit 59cf42d
Showing
3 changed files
with
524 additions
and
7 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
Oops, something went wrong.