Description
Feature Description
Currently gitea
is just a shortcut for gitea web
when invoking the binary. In many cases where a human1 is running the CLI, I would wager that this is not what they expect or want to do.
I'm creating this proposal to gather feedback from the community, but I think this would potentially make the initial experience less confusing.
We could, if this proposal goes through, more accurately contain the code that generates directories/files to the commands that actually need/expect those things to exist. Of course we should also improve those commands to make them less destructive (or creative) in their own right, but I think this would implicitly help avoid issues such as #25938
As a side-note, my suggestion for a replacement would be gitea help
as the shortcut. At least then the default action is to show you the available actions.
Impact
Thankfully the example systemd service already explicitly invokes the web
sub-command, so anyone who has copied the command from there should be fine.
The docker run scripts also appear to set this correctly.
The docs also explicitly invoke web
.
Nixpkgs is correct.
Alpine is correct.
Arch is correct.
Gentoo is correct.
OpenSUSE is correct.
This means that only those who do not use/copy the above defaults would be affected, and then only those that do not explicitly invoke the web
sub-command.
Screenshots
No response
Footnotes
-
other than our wonderful, very human, and definitely not robot developers who likely run this command a ton when making changes ↩