Skip to content

Commit 16207d3

Browse files
authored
chore(workflow-cli): modify prompt info (#81)
1 parent 38ab12d commit 16207d3

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

internal/commands/apps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (d *DryccCmd) AppCreate(id, remote string, noRemote bool) error {
4646
if err = git.CreateRemote(git.DefaultCmd, s.Client.ControllerURL.Host, remote, app.ID); err != nil {
4747
if strings.Contains(err.Error(), fmt.Sprintf("error: remote %s already exists.", remote)) {
4848
msg := "A git remote with the name %s already exists. To overwrite this remote run:\n"
49-
msg += "drycc git:remote --force --remote %s --app %s"
49+
msg += "drycc git remote --force --remote %s --app %s"
5050
return fmt.Errorf(msg, remote, remote, app.ID)
5151
}
5252
return err
@@ -56,7 +56,7 @@ func (d *DryccCmd) AppCreate(id, remote string, noRemote bool) error {
5656
}
5757

5858
if noRemote {
59-
d.Printf("If you want to add a git remote for this app later, use `drycc git:remote -a %s`\n", app.ID)
59+
d.Printf("If you want to add a git remote for this app later, use `drycc git remote -a %s`\n", app.ID)
6060
}
6161

6262
return nil

internal/commands/apps_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,6 @@ func TestRemoteExists(t *testing.T) {
328328
err = cmdr.AppCreate("foo", "drycc", false)
329329

330330
assert.Equal(t, err.Error(), `A git remote with the name drycc already exists. To overwrite this remote run:
331-
drycc git:remote --force --remote drycc --app foo`,
331+
drycc git remote --force --remote drycc --app foo`,
332332
"output")
333333
}

internal/commands/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (d *DryccCmd) GitRemote(appID, remote string, force bool) error {
5454
return nil
5555
}
5656

57-
msg := "Remote %s already exists, please run 'drycc git:remote -f' to overwrite\n"
57+
msg := "Remote %s already exists, please run 'drycc git remote -f' to overwrite\n"
5858
msg += "Existing remote URL: %s\n"
5959
msg += "When forced, will overwrite with: %s"
6060

internal/parser/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func configPullCommand(cmdr *commands.DryccCmd) *cobra.Command {
144144
Short: i18n.T("Pull environment variables to the path"),
145145
Long: i18n.T(`Extract all environment variables from an application or config group. for local use.
146146
147-
The environmental variables can be piped into a file, 'drycc config:pull > file',
147+
The environmental variables can be piped into a file, 'drycc config pull > file',
148148
or stored locally in a file named .env. This file can be
149149
read by foreman to load the local environment for your app.`),
150150
RunE: func(_ *cobra.Command, _ []string) error {
@@ -184,7 +184,7 @@ func configPushCommand(cmdr *commands.DryccCmd) *cobra.Command {
184184
185185
This file can be read by foreman
186186
to load the local environment for your app. The file should be piped via
187-
stdin, 'drycc config:push < .env', or using the --path option.`),
187+
stdin, 'drycc config push < .env', or using the --path option.`),
188188
RunE: func(_ *cobra.Command, _ []string) error {
189189
return cmdr.ConfigPush(app, configFlags.ptype, configFlags.group, flags.path, flags.confirm)
190190
},

0 commit comments

Comments
 (0)