Fix usage in config 'add' and 'edit' commands
@@ -396,6 +396,10 @@ const (
configXrUrl = "xray-url"
configMcUrl = "mission-control-url"
configPlUrl = "pipelines-url"
+ configAccessToken = configPrefix + accessToken
+ configUser = configPrefix + user
+ configPassword = configPrefix + password
+ configApiKey = configPrefix + apikey
)
var flagsMap = map[string]cli.Flag{
@@ -1189,11 +1193,27 @@ var flagsMap = map[string]cli.Flag{
Name: configPlUrl,
Usage: "[Optional] Pipelines URL.` `",
},
+ configUser: cli.StringFlag{
+ Name: user,
+ Usage: "[Optional] JFrog Platform username. ` `",
+ },
+ configPassword: cli.StringFlag{
+ Name: password,
+ Usage: "[Optional] JFrog Platform password. ` `",
+ },
+ configApiKey: cli.StringFlag{
+ Name: apikey,
+ Usage: "[Optional] JFrog Platform API key. ` `",
+ },
+ configAccessToken: cli.StringFlag{
+ Name: accessToken,
+ Usage: "[Optional] JFrog Platform access token. ` `",
+ },
}
var commandFlags = map[string][]string{
Config: {
- interactive, encPassword, configPlatformUrl, configRtUrl, distUrl, configXrUrl, configMcUrl, configPlUrl, user, password, apikey, accessToken, sshKeyPath, clientCertPath,
+ interactive, encPassword, configPlatformUrl, configRtUrl, distUrl, configXrUrl, configMcUrl, configPlUrl, configUser, configPassword, configApiKey, configAccessToken, sshKeyPath, clientCertPath,
clientCertKeyPath, basicAuthOnly, insecureTls,
},
RtConfig: {
