0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-19 04:16:03 +01:00
gitea/docs/content/doc
wxiaoguang d0dbe52e76
Refactor to use urfave/cli/v2 (#25959)
Replace #10912

And there are many new tests to cover the CLI behavior

There were some concerns about the "option order in hook scripts"
(https://github.com/go-gitea/gitea/pull/10912#issuecomment-1137543314),
it's not a problem now. Because the hook script uses `/gitea hook
--config=/app.ini pre-receive` format. The "config" is a global option,
it can appear anywhere.

----

## ⚠️ BREAKING ⚠️

This PR does it best to avoid breaking anything. The major changes are:

* `gitea` itself won't accept web's options: `--install-port` / `--pid`
/ `--port` / `--quiet` / `--verbose` .... They are `web` sub-command's
options.
    * Use `./gitea web --pid ....` instead
* `./gitea` can still run the `web` sub-command as shorthand, with
default options
* The sub-command's options must follow the sub-command
* Before: `./gitea --sub-opt subcmd` might equal to `./gitea subcmd
--sub-opt` (well, might not ...)
    * After: only `./gitea subcmd --sub-opt` could be used
    * The global options like `--config` are not affected
2023-07-21 17:28:19 +08:00
..
administration Refactor to use urfave/cli/v2 (#25959) 2023-07-21 17:28:19 +08:00
contributing Change branch name from master to main in some documents' links (#25126) 2023-06-08 07:35:55 +00:00
development Move public asset files to the proper directory (#25907) 2023-07-18 18:06:43 +02:00
help Update path related documents (#25417) 2023-07-19 11:22:57 +02:00
installation Correctly refer to dev tags as nightly in the docker docs (#26004) 2023-07-20 17:26:02 +08:00
usage RPM Registry: Show zypper commands for SUSE based distros as well (#25981) 2023-07-20 17:37:31 +02:00
actions.en-us.md
administration.en-us.md
administration.fr-fr.md
administration.zh-cn.md
administration.zh-tw.md
contributing.en-us.md
contributing.fr-fr.md
contributing.zh-tw.md
development.en-us.md
development.zh-cn.md
development.zh-tw.md
help.en-us.md
help.fr-fr.md
help.zh-cn.md
help.zh-tw.md
installation.en-us.md
installation.fr-fr.md
installation.zh-cn.md
installation.zh-tw.md
packages.en-us.md
search.de-de.md
search.en-us.md
search.fr-fr.md
search.nl-nl.md
search.pt-br.md
search.zh-cn.md
search.zh-tw.md
usage.en-us.md
usage.zh-cn.md
usage.zh-tw.md