Skip to content

Commit da25541

Browse files
committed
Update prompt to mention ~/.aws location
1 parent d90de77 commit da25541

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

internal/awsconfig/awsconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func Setup(ctx context.Context, sink output.Sink, resolvedHost string) error {
288288

289289
responseCh := make(chan output.InputResponse, 1)
290290
output.EmitUserInputRequest(sink, output.UserInputRequestEvent{
291-
Prompt: "Set up a LocalStack profile for AWS CLI and SDKs?",
291+
Prompt: "Set up a LocalStack profile for AWS CLI and SDKs in ~/.aws?",
292292
Options: []output.InputOption{{Key: "y", Label: "Y"}, {Key: "n", Label: "n"}},
293293
ResponseCh: responseCh,
294294
})

internal/ui/components/input_prompt_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ func TestInputPromptView(t *testing.T) {
3838
},
3939
{
4040
name: "multiple options shows brackets",
41-
prompt: "Set up a LocalStack profile for AWS CLI and SDKs?",
41+
prompt: "Set up a LocalStack profile for AWS CLI and SDKs in ~/.aws?",
4242
options: []output.InputOption{
4343
{Key: "y", Label: "Y"},
4444
{Key: "n", Label: "n"},
4545
},
46-
contains: []string{"?", "Set up a LocalStack profile for AWS CLI and SDKs?", "[Y/n]"},
46+
contains: []string{"?", "Set up a LocalStack profile for AWS CLI and SDKs in ~/.aws?", "[Y/n]"},
4747
},
4848
{
4949
name: "multi-line prompt renders trailing lines",

test/integration/awsconfig_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestStartPromptsWhenAWSProfileMissingEverywhere(t *testing.T) {
6767

6868
// Wait for the prompt emitted after the container becomes ready.
6969
require.Eventually(t, func() bool {
70-
return bytes.Contains(out.Bytes(), []byte("Set up a LocalStack profile for AWS CLI and SDKs?"))
70+
return bytes.Contains(out.Bytes(), []byte("Set up a LocalStack profile for AWS CLI and SDKs in ~/.aws?"))
7171
}, 2*time.Minute, 200*time.Millisecond, "AWS profile prompt should appear")
7272

7373
_, err = ptmx.Write([]byte("y"))

0 commit comments

Comments
 (0)