Skip to content

Commit 92eb5b9

Browse files
authored
chore(cli): use default input when asking for rates (#1558)
<!-- Provide summary of changes --> Previously, when we asked customers to specify a rate they were met with a blank prompt. ``` How long would you like to wait between executions? [? for help] ``` Now, we add a default input to give folks a hint for how to format their response. ``` How long would you like to wait between executions? [? for help] (1h30m) ``` <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, 77" --> By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 56b1d6c commit 92eb5b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/pkg/term/selector/selector.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ func (s *WorkspaceSelect) askRate(rateValidator prompt.ValidatorFunc) (string, e
529529
ratePrompt,
530530
rateHelp,
531531
rateValidator,
532+
prompt.WithDefaultInput("1h30m"),
532533
prompt.WithFinalMessage("Rate:"),
533534
)
534535
if err != nil {

0 commit comments

Comments
 (0)