Skip to content

Commit 4926c6d

Browse files
franklouwersclaude
andcommitted
Fix command paths in auth api examples
Update example commands to use correct path 'stackit auth api' instead of 'stackit auth provider' in login, logout, and get-access-token commands. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 42341b1 commit 4926c6d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/cmd/auth/api/get-access-token/get_access_token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
2727
Example: examples.Build(
2828
examples.NewExample(
2929
`Print a short-lived access token for the STACKIT Terraform Provider and SDK`,
30-
"$ stackit auth provider get-access-token"),
30+
"$ stackit auth api get-access-token"),
3131
),
3232
RunE: func(cmd *cobra.Command, args []string) error {
3333
model, err := parseInput(params.Printer, cmd, args)

internal/cmd/auth/api/login/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
2222
Example: examples.Build(
2323
examples.NewExample(
2424
`Login for the STACKIT Terraform Provider and SDK. This command will open a browser window where you can login to your STACKIT account`,
25-
"$ stackit auth provider login"),
25+
"$ stackit auth api login"),
2626
),
2727
RunE: func(_ *cobra.Command, _ []string) error {
2828
err := auth.AuthorizeUser(params.Printer, auth.StorageContextAPI, false)

internal/cmd/auth/api/logout/logout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
1919
Example: examples.Build(
2020
examples.NewExample(
2121
`Log out from the STACKIT Terraform Provider and SDK`,
22-
"$ stackit auth provider logout"),
22+
"$ stackit auth api logout"),
2323
),
2424
RunE: func(_ *cobra.Command, _ []string) error {
2525
err := auth.LogoutUserWithContext(auth.StorageContextAPI)

0 commit comments

Comments
 (0)