aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-22 19:12:31 +0800
committerᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-22 19:12:31 +0800
commitd3ecd22dbaa2005d97b4630b3dd4ad1155500257 (patch)
tree33344ba8b0ed7b2450f96aa341308198b067c444 /internal/cmd
parent5efbde4fe92cf30799c3c9fd66251dfbc03c4d87 (diff)
cmd: fix unable to find correct custom config
Diffstat (limited to 'internal/cmd')
-rw-r--r--internal/cmd/admin.go16
-rw-r--r--internal/cmd/backup.go2
-rw-r--r--internal/cmd/hook.go2
-rw-r--r--internal/cmd/import.go2
-rw-r--r--internal/cmd/restore.go2
-rw-r--r--internal/cmd/serv.go2
-rw-r--r--internal/cmd/web.go2
7 files changed, 14 insertions, 14 deletions
diff --git a/internal/cmd/admin.go b/internal/cmd/admin.go
index e0f38a86..d9275d0f 100644
--- a/internal/cmd/admin.go
+++ b/internal/cmd/admin.go
@@ -43,7 +43,7 @@ to make automatic initialization process more smoothly`,
stringFlag("password", "", "User password"),
stringFlag("email", "", "User email address"),
boolFlag("admin", "User is an admin"),
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
@@ -55,7 +55,7 @@ to make automatic initialization process more smoothly`,
"All inactivate accounts have been deleted successfully",
),
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
@@ -67,7 +67,7 @@ to make automatic initialization process more smoothly`,
"All repositories archives have been deleted successfully",
),
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
@@ -79,7 +79,7 @@ to make automatic initialization process more smoothly`,
"All repositories archives have been deleted successfully",
),
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
@@ -91,7 +91,7 @@ to make automatic initialization process more smoothly`,
"All repositories have done garbage collection successfully",
),
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
@@ -103,7 +103,7 @@ to make automatic initialization process more smoothly`,
"All public keys have been rewritten successfully",
),
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
@@ -115,7 +115,7 @@ to make automatic initialization process more smoothly`,
"All repositories' pre-receive, update and post-receive hooks have been resynced successfully",
),
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
@@ -127,7 +127,7 @@ to make automatic initialization process more smoothly`,
"All repository records that lost Git files have been reinitialized successfully",
),
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
)
diff --git a/internal/cmd/backup.go b/internal/cmd/backup.go
index c4435e1a..6448ce95 100644
--- a/internal/cmd/backup.go
+++ b/internal/cmd/backup.go
@@ -31,7 +31,7 @@ which can be used for migrating Gogs to another server. The output format is mea
portable among all supported database engines.`,
Action: runBackup,
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
boolFlag("verbose, v", "Show process details"),
stringFlag("tempdir, t", os.TempDir(), "Temporary directory path"),
stringFlag("target", "./", "Target directory path to save backup archive"),
diff --git a/internal/cmd/hook.go b/internal/cmd/hook.go
index cac19097..8c7cf91b 100644
--- a/internal/cmd/hook.go
+++ b/internal/cmd/hook.go
@@ -34,7 +34,7 @@ var (
Usage: "Delegate commands to corresponding Git hooks",
Description: "All sub-commands should only be called by Git",
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
Subcommands: []cli.Command{
subcmdHookPreReceive,
diff --git a/internal/cmd/import.go b/internal/cmd/import.go
index e9795693..5dbac9c1 100644
--- a/internal/cmd/import.go
+++ b/internal/cmd/import.go
@@ -37,7 +37,7 @@ without manually hacking the data files`,
Flags: []cli.Flag{
stringFlag("source", "", "Source directory that stores new locale files"),
stringFlag("target", "", "Target directory that stores old locale files"),
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
)
diff --git a/internal/cmd/restore.go b/internal/cmd/restore.go
index 35cabea9..63d753a6 100644
--- a/internal/cmd/restore.go
+++ b/internal/cmd/restore.go
@@ -32,7 +32,7 @@ If corresponding files or database tables are not presented in the archive, they
be skipped and remain unchanged.`,
Action: runRestore,
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
boolFlag("verbose, v", "Show process details"),
stringFlag("tempdir, t", os.TempDir(), "Temporary directory path"),
stringFlag("from", "", "Path to backup archive"),
diff --git a/internal/cmd/serv.go b/internal/cmd/serv.go
index 567f4572..b6df787e 100644
--- a/internal/cmd/serv.go
+++ b/internal/cmd/serv.go
@@ -31,7 +31,7 @@ var Serv = cli.Command{
Description: `Serv provide access auth for repositories`,
Action: runServ,
Flags: []cli.Flag{
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}
diff --git a/internal/cmd/web.go b/internal/cmd/web.go
index 6a61f54a..306a4439 100644
--- a/internal/cmd/web.go
+++ b/internal/cmd/web.go
@@ -53,7 +53,7 @@ and it takes care of all the other things for you`,
Action: runWeb,
Flags: []cli.Flag{
stringFlag("port, p", "3000", "Temporary port number to prevent conflict"),
- stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"),
+ stringFlag("config, c", "", "Custom configuration file path"),
},
}