Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit a50b7ec

Browse files
committed
Use %q to quote strings
1 parent 58154af commit a50b7ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/cmd/envs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ coder envs edit back-end-env --disk 20`,
485485

486486
if !force && env.LatestStat.ContainerStatus == coder.EnvironmentOn {
487487
_, err = (&promptui.Prompt{
488-
Label: fmt.Sprintf("Rebuild environment \"%s\"? (will destroy any work outside of your home directory)", env.Name),
488+
Label: fmt.Sprintf("Rebuild environment %q? (will destroy any work outside of your home directory)", env.Name),
489489
IsConfirm: true,
490490
}).Run()
491491
if err != nil {

internal/cmd/rebuild.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ coder envs rebuild backend-env --force`,
4343

4444
if !force && env.LatestStat.ContainerStatus == coder.EnvironmentOn {
4545
_, err = (&promptui.Prompt{
46-
Label: fmt.Sprintf("Rebuild environment \"%s\"? (will destroy any work outside of your home directory)", env.Name),
46+
Label: fmt.Sprintf("Rebuild environment %q? (will destroy any work outside of your home directory)", env.Name),
4747
IsConfirm: true,
4848
}).Run()
4949
if err != nil {

0 commit comments

Comments
 (0)