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
Makefile
Outdated
| .PHONY: generate-completions | ||
| generate-completions: ## generate shell completions | ||
| @[ -f gitea ] || make backend | ||
| @./gitea completion bash > contrib/autocompletion/bash_autocomplete | ||
| @./gitea completion zsh > contrib/autocompletion/zsh_autocomplete | ||
| @./gitea completion fish > contrib/autocompletion/gitea.fish | ||
|
|
There was a problem hiding this comment.
When end users need the "autocompletion", they must have had the "gitea" binary on their filesystem.
So I think it's better to remove contrib/autocompletion/*, just tell end users to generate their autocompletion scripts by running the command.
Then we do not need to maintain these scripts in this repo.
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)