Skip to content

Commit

Permalink
Update flag description (#477)
Browse files Browse the repository at this point in the history
* Update flag description

* Update docs
  • Loading branch information
vicentepinto98 authored Sep 12, 2024
1 parent fd82981 commit 425a9a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/stackit_config_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ stackit config set [flags]
--session-time-limit string Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)
--ske-custom-endpoint string SKE API base URL, used in calls to this API
--sqlserverflex-custom-endpoint string SQLServer Flex API base URL, used in calls to this API
--token-custom-endpoint string Custom endpoint for the token API, which is used to request access tokens when the service-account authentication is activated
--token-custom-endpoint string Custom token endpoint of the Service Account API, which is used to request access tokens when the service account authentication is activated. Not relevant for user authentication.
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_config_unset.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ stackit config unset [flags]
--session-time-limit Maximum time before authentication is required again. If unset, defaults to 2h
--ske-custom-endpoint SKE API base URL. If unset, uses the default base URL
--sqlserverflex-custom-endpoint SQLServer Flex API base URL. If unset, uses the default base URL
--token-custom-endpoint Custom endpoint for the token API, which is used to request access tokens when the service-account authentication is activated
--token-custom-endpoint Custom token endpoint of the Service Account API, which is used to request access tokens when the service account authentication is activated. Not relevant for user authentication.
--verbosity Verbosity of the CLI
```

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/config/set/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func configureFlags(cmd *cobra.Command) {
cmd.Flags().String(skeCustomEndpointFlag, "", "SKE API base URL, used in calls to this API")
cmd.Flags().String(sqlServerFlexCustomEndpointFlag, "", "SQLServer Flex API base URL, used in calls to this API")
cmd.Flags().String(iaasCustomEndpointFlag, "", "IaaS API base URL, used in calls to this API")
cmd.Flags().String(tokenCustomEndpointFlag, "", "Custom endpoint for the token API, which is used to request access tokens when the service-account authentication is activated")
cmd.Flags().String(tokenCustomEndpointFlag, "", "Custom token endpoint of the Service Account API, which is used to request access tokens when the service account authentication is activated. Not relevant for user authentication.")

err := viper.BindPFlag(config.SessionTimeLimitKey, cmd.Flags().Lookup(sessionTimeLimitFlag))
cobra.CheckErr(err)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/config/unset/unset.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func configureFlags(cmd *cobra.Command) {
cmd.Flags().Bool(skeCustomEndpointFlag, false, "SKE API base URL. If unset, uses the default base URL")
cmd.Flags().Bool(sqlServerFlexCustomEndpointFlag, false, "SQLServer Flex API base URL. If unset, uses the default base URL")
cmd.Flags().Bool(iaasCustomEndpointFlag, false, "IaaS API base URL. If unset, uses the default base URL")
cmd.Flags().Bool(tokenCustomEndpointFlag, false, "Custom endpoint for the token API, which is used to request access tokens when the service-account authentication is activated")
cmd.Flags().Bool(tokenCustomEndpointFlag, false, "Custom token endpoint of the Service Account API, which is used to request access tokens when the service account authentication is activated. Not relevant for user authentication.")
}

func parseInput(p *print.Printer, cmd *cobra.Command) *inputModel {
Expand Down

0 comments on commit 425a9a2

Please sign in to comment.