From e38e761d5bb0f5180dc94cdd9691b8366cc8114b Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 3 Jun 2025 09:25:58 +0200 Subject: [PATCH] fix: CLI is forgejo not Forgejo (#8049) > **Warning** note to self: update the docs CLI page right after it is merged. Regression from https://codeberg.org/forgejo/forgejo/pulls/8035 ## Checklist The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org). ### Tests Check the USAGE line: From the forgejo branch: ```sh $ make TAGS='sqlite sqlite_unlock_notify' forgejo $ ./forgejo help | head ./forgejo help | head NAME: Forgejo - Beyond coding. We forge. USAGE: Forgejo [global options] [command [command options]] ``` From this pull request: ```sh $ make TAGS='sqlite sqlite_unlock_notify' forgejo $ ./forgejo help | head NAME: forgejo - Beyond coding. We forge. USAGE: forgejo [global options] [command [command options]] ``` ### Documentation - [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change. - [x] I did not document these changes and I do not expect someone else to do it. ### Release notes - [x] I do not want this change to show in the release notes. - [ ] I want the title to show in the release notes with a link to this pull request. - [ ] I want the content of the `release-notes/.md` to be be used for the release notes instead of the title. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8049 Reviewed-by: Michael Kriese Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 8f0adb1a82..65cde47884 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -159,7 +159,7 @@ func NewMainApp(version, versionExtra string) *cli.Command { func innerNewMainApp(version, versionExtra string, subCmdsStandaloneArgs, subCmdWithConfigArgs []*cli.Command, globalFlagsArgs func() []cli.Flag) *cli.Command { app := &cli.Command{} - app.Name = "Forgejo" + app.Name = "forgejo" app.Usage = "Beyond coding. We forge." app.Description = `By default, forgejo will start serving using the web-server with no argument, which can alternatively be run by running the subcommand "web".` app.Version = version + versionExtra