Closed hoijui closed 2 years ago
great project btw. thank you! :-)
Great suggestion @hoijui.
Would an example like
[core]
host = "https://gitlab.com"
token = "1223334444555556789K"
user = "yourusername"
[mr_checkout]
force = true
[mr_create]
force-linebreak = true
draft = true
[mr_edit]
force-linebreak = true
work for you?
I think the README deserves an highlight about the "setting default flags for commands" subject. IMHO that's something that only those aware of how go-cobra and go-viper works know how to set them 😄
Great suggestion @hoijui.
Would an example like
[core] host = "https://gitlab.com" token = "1223334444555556789K" user = "yourusername" [mr_checkout] force = true [mr_create] force-linebreak = true draft = true [mr_edit] force-linebreak = true
work for you?
that looks good! :-) If there were also a link to all the possible settings or something like that, I would be fully satisfied.
though @bmeneg 's suggestion also sounds good.. I certainly don;t know about it. ;-)
I think the README deserves an highlight about the "setting default flags for commands" subject. IMHO that's something that only those aware of how go-cobra and go-viper works know how to set them smile
Yeah :) Perhaps a sentence indicating that any option can be set, and then a pointer to the simple example file above?
how do I know what "any option" means. I think would need a list of them.
@hoijui any option == any available flag in the --help
. The list would be exactly all the flags. Some of them makes sense to have a default value set, others done, but every flag can be set in the configuration file. Do you think that using "flag" instead of "option" would be clearer?
how do I know what "any option" means. I think would need a list of them.
The --help commands will provide this for you. Let me fix the text to indicate that.
Fixed.
AHA!! :O YES! now it is perfect, thank you for the change, and you both for the explanation! I honestly did not understand, it was about the CLI flags/options!
This issue should be closed when https://github.com/zaquestion/lab/pull/807 is merged.
.. or give help in any other way, where the TOML config is first mentioned, about how the config file should look like.