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: main.go
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -87,25 +87,29 @@ func main() {
87
87
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".`
88
88
app.Version=Version+formatBuiltWith()
89
89
app.EnableBashCompletion=true
90
-
app.Commands= []cli.Command{
90
+
91
+
subCmdWithIni:= []cli.Command{
91
92
cmd.CmdWeb,
92
93
cmd.CmdServ,
93
94
cmd.CmdHook,
94
95
cmd.CmdDump,
95
-
cmd.CmdCert,
96
96
cmd.CmdAdmin,
97
-
cmd.CmdGenerate,
98
97
cmd.CmdMigrate,
99
98
cmd.CmdKeys,
100
99
cmd.CmdConvert,
101
100
cmd.CmdDoctor,
102
101
cmd.CmdManager,
103
-
cmd.Cmdembedded,
102
+
cmd.CmdEmbedded,
104
103
cmd.CmdMigrateStorage,
105
-
cmd.CmdDocs,
106
104
cmd.CmdDumpRepository,
107
105
cmd.CmdRestoreRepository,
108
106
cmd.CmdActions,
107
+
cmdHelp, // TODO: the "help" sub-command was used to show the more information for "work path" and "custom config", in the future, it should avoid doing so
108
+
}
109
+
subCmdWithStandalone:= []cli.Command{
110
+
cmd.CmdCert,
111
+
cmd.CmdGenerate,
112
+
cmd.CmdDocs,
109
113
}
110
114
111
115
// shared configuration flags, they are for global and for each sub-command at the same time
0 commit comments