-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Improve CLI commands #34973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve CLI commands #34973
Conversation
since flags aren't marked as local they cascade through the app so before can be used as setup as we need to define flags once.
only main and it's subcommands are directly handled by it
instead of looping though the flags in linage, use their non local property
add fish to docs
work-path first, then config, then custom path
061ab90
to
f4531b6
Compare
Made more improvements to the "help" command/flag and added some tests. Does it look good to you? |
It does. With that test rework we could add I've also been thinking about adding a dedicated |
IMO the "DEFAULT CONFIGURATION:" section is just a legacy design that we don't want to break (at the moment it is the only approach to see where the config file is, for example: in docker, there is a shell wrapper) As long as there is no breaking, we can still keep "DEFAULT CONFIGURATION:" section for some time, until we would have some better designs. |
* giteaofficial/main: Fix updating user visibility (go-gitea#35036) Fix git commit committer parsing and add some tests (go-gitea#35007) Refactor OpenIDConnect to support SSH/FullName sync (go-gitea#34978) Support base64-encoded agit push options (go-gitea#35037) Also display "recently pushed branch" alert on PR view (go-gitea#35001) Make submodule link work with relative path (go-gitea#35034) Update to go 1.24.5 (go-gitea#35031) Improve CLI commands (go-gitea#34973) Tweak eslint config, fix new issues (go-gitea#35019) # Conflicts: # templates/repo/commits_list.tmpl
add makefile rule for shell completions, disable internal commands from showing in help
rework custom help so it only triggers on first level commands
help changes are mainly to work around regression: #34510 (comment)