Change some copy per product's suggestions

This commit is contained in:
Jeff Hubbard 2022-03-18 10:10:57 -07:00
parent ce3d0791c3
commit 8abf50be1d
3 changed files with 11 additions and 5 deletions

View file

@ -21,7 +21,7 @@ type createOptions struct {
machine string
showStatus bool
permissionsOptOut bool
devContainerPath string
devContainerPath string
idleTimeout time.Duration
}
@ -123,8 +123,8 @@ func (a *App) Create(ctx context.Context, opts createOptions) error {
devContainerPathQuestion := &survey.Question{
Name: "devContainerPath",
Prompt: &survey.Select{
Message: "Devcontainer.json file:",
Options: append([]string{"none"}, devContainerPaths...),
Message: "Devcontainer definition file:",
Options: append([]string{"default"}, devContainerPaths...),
},
}
@ -133,7 +133,7 @@ func (a *App) Create(ctx context.Context, opts createOptions) error {
}
}
if devContainerPath == "none" {
if devContainerPath == "default" {
// special arg allows users to opt out of devcontainer.json selection
devContainerPath = ""
}

View file

@ -154,7 +154,7 @@ func TestApp_Create(t *testing.T) {
wantErr: true,
wantErrMsg: "error getting devcontainer.json paths: some error",
},
{
{
name: "create codespace that requires accepting additional permissions",
fields: fields{
apiClient: &apiClientMock{