From f177e930c25fbeed7fcf2d0b8b5793711783241e Mon Sep 17 00:00:00 2001 From: Folke Date: Sun, 5 Nov 2023 17:56:29 +0100 Subject: [PATCH 1/2] Fixing #27913 --- contrib/environment-to-ini/environment-to-ini.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/contrib/environment-to-ini/environment-to-ini.go b/contrib/environment-to-ini/environment-to-ini.go index 7758045fd32c7..65778f2068efe 100644 --- a/contrib/environment-to-ini/environment-to-ini.go +++ b/contrib/environment-to-ini/environment-to-ini.go @@ -47,22 +47,26 @@ func main() { on the configuration cheat sheet.` app.Flags = []cli.Flag{ &cli.StringFlag{ - Name: "custom-path, C", + Name: "custom-path", + Aliases: []string{"C"}, Value: setting.CustomPath, Usage: "Custom path file path", }, &cli.StringFlag{ - Name: "config, c", + Name: "config", + Aliases: []string{"c"}, Value: setting.CustomConf, Usage: "Custom configuration file path", }, &cli.StringFlag{ - Name: "work-path, w", + Name: "work-path", + Aliases: []string{"w"}, Value: setting.AppWorkPath, Usage: "Set the gitea working path", }, &cli.StringFlag{ - Name: "out, o", + Name: "out", + Aliases: []string{"o"}, Value: "", Usage: "Destination file to write to", }, From f92e3a180d4ddeed3c53701b5c2d44b797ee7455 Mon Sep 17 00:00:00 2001 From: Folke Ashberg Date: Mon, 6 Nov 2023 18:39:39 +0100 Subject: [PATCH 2/2] #27914 make fmt --- .../environment-to-ini/environment-to-ini.go | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/contrib/environment-to-ini/environment-to-ini.go b/contrib/environment-to-ini/environment-to-ini.go index 65778f2068efe..a7d7a6d293d95 100644 --- a/contrib/environment-to-ini/environment-to-ini.go +++ b/contrib/environment-to-ini/environment-to-ini.go @@ -47,28 +47,28 @@ func main() { on the configuration cheat sheet.` app.Flags = []cli.Flag{ &cli.StringFlag{ - Name: "custom-path", + Name: "custom-path", Aliases: []string{"C"}, - Value: setting.CustomPath, - Usage: "Custom path file path", + Value: setting.CustomPath, + Usage: "Custom path file path", }, &cli.StringFlag{ - Name: "config", + Name: "config", Aliases: []string{"c"}, - Value: setting.CustomConf, - Usage: "Custom configuration file path", + Value: setting.CustomConf, + Usage: "Custom configuration file path", }, &cli.StringFlag{ - Name: "work-path", + Name: "work-path", Aliases: []string{"w"}, - Value: setting.AppWorkPath, - Usage: "Set the gitea working path", + Value: setting.AppWorkPath, + Usage: "Set the gitea working path", }, &cli.StringFlag{ - Name: "out", + Name: "out", Aliases: []string{"o"}, - Value: "", - Usage: "Destination file to write to", + Value: "", + Usage: "Destination file to write to", }, } app.Action = runEnvironmentToIni