Skip to content

Commit

Permalink
grammar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmik committed Oct 8, 2024
1 parent 017655b commit 3b7e8cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/stack/stack_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
)

const (
envPropmtSkipKey = "SPACECTL_SKIP_STACK_PROMPT"
envPromptSkipKey = "SPACECTL_SKIP_STACK_PROMPT"
)

// getStackID will try to retrieve a stack ID from multiple sources.
Expand Down Expand Up @@ -71,7 +71,7 @@ func getStack(cliCtx *cli.Context) (*stack, error) {
return nil, err
}

skip := os.Getenv(envPropmtSkipKey) == "true"
skip := os.Getenv(envPromptSkipKey) == "true"

got, err := findAndSelectStack(cliCtx.Context, &stackSearchParams{
count: 50,
Expand Down Expand Up @@ -191,7 +191,7 @@ func findAndSelectStack(ctx context.Context, p *stackSearchParams, forcePrompt b
fmt.Printf("Search results exceeded maximum capacity (%d) some stacks might be missing\n", p.count)
}
if len(items) == 1 && forcePrompt {
fmt.Printf("Enable auto-selection by setting '%s=true'\n", envPropmtSkipKey)
fmt.Printf("Enable auto-selection by setting '%s=true'\n", envPromptSkipKey)
}

prompt := promptui.Select{
Expand Down

0 comments on commit 3b7e8cf

Please sign in to comment.