-
Notifications
You must be signed in to change notification settings - Fork 27
added global appendable Flags (#12) #26
base: master
Are you sure you want to change the base?
added global appendable Flags (#12) #26
Conversation
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
You might want to take a look at the way I've done it in the main Gitea binary. I'm not certain that the technique used there is definitely applicable but it shows a way of doing global options without referencing multiple files. |
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
This technique (https://github.com/go-gitea/gitea/blob/master/main.go#L97) does not work for tea as there are no flags that are required for all commands. The mostly used flags are --login, --output and --repo but those are not used by the subcommands login and logout. That's why I think this technique is not suited for tea. |
Fair enough. I'm not particularly au fait with how tea does things but saw what you were doing looked slightly similar. |
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
PR to discuss global flag options.
Signed-off-by: Andreas Ulm andreas.ulm@root360.de