cmd: fix unable to find correct custom config

This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-02-22 19:12:31 +08:00
parent 5efbde4fe9
commit d3ecd22dba
9 changed files with 24 additions and 23 deletions

View File

@@ -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"),
},
}
)