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

Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit d38a825

Browse files
teddy-codesNathan Potter
authored and
Nathan Potter
committed
Rename rm to rebuild
1 parent 897bf85 commit d38a825

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

runcmd.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ type runcmd struct {
2424

2525
schemaPrefs
2626

27-
rm bool
28-
noOpen bool
27+
rebuild bool
28+
noOpen bool
2929
}
3030

3131
type schemaPrefs struct {
@@ -90,7 +90,7 @@ func (c *runcmd) RegisterFlags(fl *flag.FlagSet) {
9090
fl.BoolVar(&c.ssh, "ssh", false, "Clone repo over SSH")
9191
fl.BoolVar(&c.http, "http", false, "Clone repo over HTTP")
9292
fl.BoolVar(&c.https, "https", false, "Clone repo over HTTPS")
93-
fl.BoolVar(&c.rm, "rm", false, "Delete existing container")
93+
fl.BoolVar(&c.rebuild, "rebuild", false, "Delete existing container")
9494
fl.BoolVar(&c.noOpen, "no-open", false, "Don't open an editor session")
9595
}
9696

@@ -107,7 +107,7 @@ func (c *runcmd) Run(fl *flag.FlagSet) {
107107
flog.Fatal("%v", err)
108108
}
109109

110-
if exists && c.rm {
110+
if exists && c.rebuild {
111111
err = proj.delete()
112112
if err != nil {
113113
flog.Fatal("failed to delete existing container: %v", err)

site/content/docs/commands/run.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Examples:
3737
Force HTTPS on a Gitlab repo
3838
- sail run https://gitlab.com/inkscape/inkscape
3939
- sail run --https gitlab.com/inkscape/inkscape
40-
40+
4141
Note:
4242
If you use ssh://, http://, or https://, you must specify a host.
4343
@@ -56,7 +56,7 @@ sail run flags:
5656
--image Custom docker image to use.
5757
--keep Keep container when it fails to build. (false)
5858
--no-open Don't open an editor session (false)
59-
--rm Delete existing container (false)
59+
--rebuild Delete existing container (false)
6060
--ssh Clone repo over SSH (false)
6161
--test-cmd A command to use in-place of starting code-server for testing purposes.
6262
```

0 commit comments

Comments
 (0)