-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 code and descriptions #28482
Conversation
wxiaoguang
commented
Dec 15, 2023
•
edited
Loading
edited
- Close cli.HelpFlag = nil can be used now when update urfave/cli to v2.26.0 #28444
- Actually, it doesn't need to use that trick because it looks like it is not necessary, no user really needs it
- Remove the hidden (legacy) "doctor" subcommand and update documents
- Fix "actions" usage
d2f6ec4
to
501ef4e
Compare
cmd/main.go
Outdated
app.Usage = "A painless self-hosted Git service" | ||
app.Description = `By default, Gitea will start serving using the web-server with no argument, which can alternatively be run by running the subcommand "web".` | ||
app.Description = `Gitea program contains "web" and other subcommands. If no subcommand is given, it starts the web server by default. Use "web" subcommand for more web server arguments, user other subcommands for other features.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app.Description = `Gitea program contains "web" and other subcommands. If no subcommand is given, it starts the web server by default. Use "web" subcommand for more web server arguments, user other subcommands for other features.` | |
app.Description = `The gitea binary contains multiple subcommands, among them "web" . If no subcommand is given, the web server is started. Use the "web" subcommand to configure how the web server is started, or another subcommand for other purposes.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a fan of using "the" everywhere.
See the screenshot and old sentences, we never say "the Gitea web server", "Dump the Gitea files", "output the CLI document".
When to Use 'A,' 'An,' or 'The'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason that I think we should put "web" subcommand before others: it is the default one and is the only one most users really need.
I am not a native English speaks but among them "web"
reads strange to me.
* upstream/main: Update docs for DISABLE_QUERY_AUTH_TOKEN (go-gitea#28485) Improve CLI code and descriptions (go-gitea#28482) Remove unnecessary forgot password link in delete user section (go-gitea#28355)
* Close go-gitea#28444 * Actually, it doesn't need to use that trick because it looks like it is not necessary, no user really needs it * Remove the hidden (legacy) "doctor" subcommand and update documents * Fix "actions" usage 
* Close go-gitea#28444 * Actually, it doesn't need to use that trick because it looks like it is not necessary, no user really needs it * Remove the hidden (legacy) "doctor" subcommand and update documents * Fix "actions" usage 