@@ -123,12 +123,13 @@ const (
123123
124124 // *** Artifactory Commands' flags ***
125125 // Base flags
126- url = "url"
127- platformUrl = "platform-url"
128- user = "user"
129- password = "password"
130- accessToken = "access-token"
131- serverId = "server-id"
126+ url = "url"
127+ platformUrl = "platform-url"
128+ user = "user"
129+ password = "password"
130+ accessToken = "access-token"
131+ serverId = "server-id"
132+ disableTokenRefresh = "disable-token-refresh"
132133
133134 passwordStdin = "password-stdin"
134135 accessTokenStdin = "access-token-stdin"
@@ -520,17 +521,18 @@ const (
520521 licenseCount = "license-count"
521522
522523 // *** Config Commands' flags ***
523- configPrefix = "config-"
524- configPlatformUrl = configPrefix + url
525- configRtUrl = "artifactory-url"
526- configDistUrl = "distribution-url"
527- configXrUrl = "xray-url"
528- configMcUrl = "mission-control-url"
529- configPlUrl = "pipelines-url"
530- configAccessToken = configPrefix + accessToken
531- configUser = configPrefix + user
532- configPassword = configPrefix + password
533- configInsecureTls = configPrefix + InsecureTls
524+ configPrefix = "config-"
525+ configPlatformUrl = configPrefix + url
526+ configRtUrl = "artifactory-url"
527+ configDistUrl = "distribution-url"
528+ configXrUrl = "xray-url"
529+ configMcUrl = "mission-control-url"
530+ configPlUrl = "pipelines-url"
531+ configAccessToken = configPrefix + accessToken
532+ configUser = configPrefix + user
533+ configPassword = configPrefix + password
534+ configInsecureTls = configPrefix + InsecureTls
535+ configDisableRefreshAccessToken = configPrefix + disableTokenRefresh
534536
535537 // *** Project Commands' flags ***
536538 projectPath = "path"
@@ -1560,6 +1562,10 @@ var flagsMap = map[string]cli.Flag{
15601562 Name : InsecureTls ,
15611563 Usage : "[Default: false] Set to true to skip TLS certificates verification, while encrypting the Artifactory password during the config process.` `" ,
15621564 },
1565+ configDisableRefreshAccessToken : cli.BoolFlag {
1566+ Name : disableTokenRefresh ,
1567+ Usage : "[Default: false] Set to true to disable automatic refresh of access tokens.` `" ,
1568+ },
15631569 projectPath : cli.StringFlag {
15641570 Name : projectPath ,
15651571 Usage : "[Default: ./] Full path to the code project.` `" ,
@@ -1729,11 +1735,12 @@ var flagsMap = map[string]cli.Flag{
17291735var commandFlags = map [string ][]string {
17301736 AddConfig : {
17311737 interactive , EncPassword , configPlatformUrl , configRtUrl , configDistUrl , configXrUrl , configMcUrl , configPlUrl , configUser , configPassword , configAccessToken , sshKeyPath , sshPassphrase , ClientCertPath ,
1732- ClientCertKeyPath , BasicAuthOnly , configInsecureTls , Overwrite , passwordStdin , accessTokenStdin , OidcTokenID , OidcProviderName , OidcAudience , OidcProviderType , ApplicationKey ,
1738+ ClientCertKeyPath , BasicAuthOnly , configInsecureTls , Overwrite , passwordStdin , accessTokenStdin , OidcTokenID ,
1739+ OidcProviderName , OidcAudience , OidcProviderType , ApplicationKey , configDisableRefreshAccessToken ,
17331740 },
17341741 EditConfig : {
17351742 interactive , EncPassword , configPlatformUrl , configRtUrl , configDistUrl , configXrUrl , configMcUrl , configPlUrl , configUser , configPassword , configAccessToken , sshKeyPath , sshPassphrase , ClientCertPath ,
1736- ClientCertKeyPath , BasicAuthOnly , configInsecureTls , passwordStdin , accessTokenStdin ,
1743+ ClientCertKeyPath , BasicAuthOnly , configInsecureTls , passwordStdin , accessTokenStdin , configDisableRefreshAccessToken ,
17371744 },
17381745 DeleteConfig : {
17391746 deleteQuiet ,
0 commit comments