This repository was archived by the owner on Apr 28, 2020. It is now read-only.
File tree 2 files changed +6
-6
lines changed
site/content/docs/commands 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ type runcmd struct {
24
24
25
25
schemaPrefs
26
26
27
- rm bool
28
- noOpen bool
27
+ rebuild bool
28
+ noOpen bool
29
29
}
30
30
31
31
type schemaPrefs struct {
@@ -90,7 +90,7 @@ func (c *runcmd) RegisterFlags(fl *flag.FlagSet) {
90
90
fl .BoolVar (& c .ssh , "ssh" , false , "Clone repo over SSH" )
91
91
fl .BoolVar (& c .http , "http" , false , "Clone repo over HTTP" )
92
92
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" )
94
94
fl .BoolVar (& c .noOpen , "no-open" , false , "Don't open an editor session" )
95
95
}
96
96
@@ -107,7 +107,7 @@ func (c *runcmd) Run(fl *flag.FlagSet) {
107
107
flog .Fatal ("%v" , err )
108
108
}
109
109
110
- if exists && c .rm {
110
+ if exists && c .rebuild {
111
111
err = proj .delete ()
112
112
if err != nil {
113
113
flog .Fatal ("failed to delete existing container: %v" , err )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Examples:
37
37
Force HTTPS on a Gitlab repo
38
38
- sail run https://gitlab.com/inkscape/inkscape
39
39
- sail run --https gitlab.com/inkscape/inkscape
40
-
40
+
41
41
Note:
42
42
If you use ssh://, http://, or https://, you must specify a host.
43
43
@@ -56,7 +56,7 @@ sail run flags:
56
56
--image Custom docker image to use.
57
57
--keep Keep container when it fails to build. (false)
58
58
--no-open Don't open an editor session (false)
59
- --rm Delete existing container (false)
59
+ --rebuild Delete existing container (false)
60
60
--ssh Clone repo over SSH (false)
61
61
--test-cmd A command to use in-place of starting code-server for testing purposes.
62
62
```
You can’t perform that action at this time.
0 commit comments