You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -591,7 +591,7 @@ be reviewed by two maintainers and must pass the automatic tests.
591
591
## Releasing Gitea
592
592
593
593
- Let $vmaj, $vmin and $vpat be Major, Minor and Patch version numbers, $vpat should be rc1, rc2, 0, 1, ...... $vmaj.$vmin will be kept the same as milestones on github or gitea in future.
594
-
- Before releasing, confirm all the version's milestone issues or PRs has been resolved. Then discuss the release on Discord channel #maintainers and get agreed with almost all the owners and mergers. Or you can declare the version and if nobody against in about serval hours.
594
+
- Before releasing, confirm all the version's milestone issues or PRs has been resolved. Then discuss the release on Discord channel #maintainers and get agreed with almost all the owners and mergers. Or you can declare the version and if nobody is against it in about several hours.
595
595
- If this is a big version first you have to create PR for changelog on branch `main` with PRs with label `changelog` and after it has been merged do following steps:
596
596
- Create `-dev` tag as `git tag -s -F release.notes v$vmaj.$vmin.0-dev` and push the tag as `git push origin v$vmaj.$vmin.0-dev`.
597
597
- When CI has finished building tag then you have to create a new branch named `release/v$vmaj.$vmin`
Copy file name to clipboardExpand all lines: cmd/main.go
+64-86Lines changed: 64 additions & 86 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ package cmd
6
6
import (
7
7
"context"
8
8
"fmt"
9
+
"io"
9
10
"os"
10
11
"strings"
11
12
@@ -15,102 +16,63 @@ import (
15
16
"github.com/urfave/cli/v3"
16
17
)
17
18
18
-
// cmdHelp is our own help subcommand with more information
19
-
// Keep in mind that the "./gitea help"(subcommand) is different from "./gitea --help"(flag), the flag doesn't parse the config or output "DEFAULT CONFIGURATION:" information
20
-
funccmdHelp() *cli.Command {
21
-
c:=&cli.Command{
22
-
Name: "help",
23
-
Aliases: []string{"h"},
24
-
Usage: "Shows a list of commands or help for one command",
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, use other subcommands for other purposes.`
126
88
app.Version=appVer.Version+appVer.Extra
127
89
app.EnableShellCompletion=true
128
-
129
-
// these sub-commands need to use config file
90
+
app.Flags= []cli.Flag{
91
+
&cli.StringFlag{
92
+
Name: "work-path",
93
+
Aliases: []string{"w"},
94
+
TakesFile: true,
95
+
Usage: "Set Gitea's working path (defaults to the Gitea's binary directory)",
96
+
},
97
+
&cli.StringFlag{
98
+
Name: "config",
99
+
Aliases: []string{"c"},
100
+
TakesFile: true,
101
+
Value: setting.CustomConf,
102
+
Usage: "Set custom config file (defaults to '{WorkPath}/custom/conf/app.ini')",
103
+
},
104
+
&cli.StringFlag{
105
+
Name: "custom-path",
106
+
Aliases: []string{"C"},
107
+
TakesFile: true,
108
+
Usage: "Set custom path (defaults to '{WorkPath}/custom')",
109
+
},
110
+
}
111
+
// these sub-commands need to use a config file
130
112
subCmdWithConfig:= []*cli.Command{
131
-
cmdHelp(), // the "help" sub-command was used to show the more information for "work path" and "custom config"
0 commit comments