Change some copy per product's suggestions
This commit is contained in:
parent
ce3d0791c3
commit
8abf50be1d
3 changed files with 11 additions and 5 deletions
|
|
@ -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 = ""
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue