|
|
@ -47,24 +47,28 @@ func main() {
|
|
|
|
on the configuration cheat sheet.`
|
|
|
|
on the configuration cheat sheet.`
|
|
|
|
app.Flags = []cli.Flag{
|
|
|
|
app.Flags = []cli.Flag{
|
|
|
|
&cli.StringFlag{
|
|
|
|
&cli.StringFlag{
|
|
|
|
Name: "custom-path, C",
|
|
|
|
Name: "custom-path",
|
|
|
|
Value: setting.CustomPath,
|
|
|
|
Aliases: []string{"C"},
|
|
|
|
Usage: "Custom path file path",
|
|
|
|
Value: setting.CustomPath,
|
|
|
|
|
|
|
|
Usage: "Custom path file path",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&cli.StringFlag{
|
|
|
|
&cli.StringFlag{
|
|
|
|
Name: "config, c",
|
|
|
|
Name: "config",
|
|
|
|
Value: setting.CustomConf,
|
|
|
|
Aliases: []string{"c"},
|
|
|
|
Usage: "Custom configuration file path",
|
|
|
|
Value: setting.CustomConf,
|
|
|
|
|
|
|
|
Usage: "Custom configuration file path",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&cli.StringFlag{
|
|
|
|
&cli.StringFlag{
|
|
|
|
Name: "work-path, w",
|
|
|
|
Name: "work-path",
|
|
|
|
Value: setting.AppWorkPath,
|
|
|
|
Aliases: []string{"w"},
|
|
|
|
Usage: "Set the gitea working path",
|
|
|
|
Value: setting.AppWorkPath,
|
|
|
|
|
|
|
|
Usage: "Set the gitea working path",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&cli.StringFlag{
|
|
|
|
&cli.StringFlag{
|
|
|
|
Name: "out, o",
|
|
|
|
Name: "out",
|
|
|
|
Value: "",
|
|
|
|
Aliases: []string{"o"},
|
|
|
|
Usage: "Destination file to write to",
|
|
|
|
Value: "",
|
|
|
|
|
|
|
|
Usage: "Destination file to write to",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
app.Action = runEnvironmentToIni
|
|
|
|
app.Action = runEnvironmentToIni
|
|
|
|