-
Notifications
You must be signed in to change notification settings - Fork 27
[WIP] add -r & -l to subcommand create (#12) #15
[WIP] add -r & -l to subcommand create (#12) #15
Conversation
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
The parent command |
Yes it does already. |
Also when setting this flag before 'create'-subcommand it is recognized and works. |
I'm currently testing an approach to simplify using global flags. |
I was confronted with this as well when implementing #6, and opted to move the extraction logic of global flags to the As discussed here, subcommands inheriting global flags would be the solution, but was never implemented. |
I would not mind against changing to cobra as that is what I usually use myself :) |
* Combine all coverage file in one command * remove generate-coverage * remove unused method: errCheck Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
…360-AndreasUlm/tea into release_add_repo_argument
I started implementing Cobra. ( https://github.com/root360-AndreasUlm/tea/tree/12_switch_to_cobra ) |
I prefer we keep same cli lib as we can use flags from gitea itself in this lib and share code. This reduce duplication. |
It seems rebase is not correct. |
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
…360-AndreasUlm/tea into release_add_repo_argument
The problem with the current cli lib is that we have to copy every global flag into every subcommand as the inheritence does not work correctly. @lunny I rebased the branch again on latest master. But I see the changes in README this PR want to do. Shall I create a new PR with cleaned changes? |
We had a similar issue with go-gitea/gitea, however you can see at this commit: go-gitea/gitea@8d0d7bc#diff-7ddfb3e035b42cd70649cc33393fe32cR75 where we have default flags that append to all subcommands. |
is closed in favor of #26 implementation |
Signed-off-by: Andreas Ulm andreas.ulm@root360.de