Skip to content

Commit 1eca698

Browse files
committed
remove required from EnvDir and Name flags
1 parent f10b90c commit 1eca698

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

cmd/configure.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
)
1010

1111
type ConfigureCmd struct {
12-
EnvDir string `help:"Directory to create the environment in. default: './env'" required:"" short:"d"`
13-
Name string `help:"Name of the environment to create. default: 'default'" required:"" short:"n"`
12+
EnvDir string `help:"Directory to create the environment in. default: './env'" short:"d"`
13+
Name string `help:"Name of the environment to create. default: 'default'" short:"n"`
1414
}
1515

1616
type configGenFunc func(cfg EnvironmentConfig, path string) error

cmd/create-env.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
)
1010

1111
type CreateEnvCmd struct {
12-
EnvDir string `help:"Directory to create the environment in. default: './env'" required:"" short:"d"`
13-
Name string `help:"Name of the environment to create. default: 'default'" required:"" short:"n"`
12+
EnvDir string `help:"Directory to create the environment in. default: './env'" short:"d"`
13+
Name string `help:"Name of the environment to create. default: 'default'" short:"n"`
1414
Overwrite bool `help:"Overwrite the environment if it already exists." short:"o"`
1515
WithConfig string `help:"Path to a custom configuration file. Replaces the default config." type:"existingfile"`
1616
WithDockerCompose string `help:"Path to a custom Docker Compose file. Replaces the default file." type:"existingfile"`

cmd/destroy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
)
1414

1515
type DestroyCmd struct {
16-
EnvDir string `help:"Directory to create the environment in. default: './env'" required:"" short:"d"`
17-
Name string `help:"Name of the environment to create. default: 'default'" required:"" short:"n"`
16+
EnvDir string `help:"Directory to create the environment in. default: './env'" short:"d"`
17+
Name string `help:"Name of the environment to create. default: 'default'" short:"n"`
1818
Timeout int `help:"Timeout in seconds for stopping containers." short:"t" default:"10"`
1919
}
2020

cmd/down.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
)
1414

1515
type DownCmd struct {
16-
EnvDir string `help:"Directory to create the environment in. default: './env'" required:"" short:"d"`
17-
Name string `help:"Name of the environment to create. default: 'default'" required:"" short:"n"`
16+
EnvDir string `help:"Directory to create the environment in. default: './env'" short:"d"`
17+
Name string `help:"Name of the environment to create. default: 'default'" short:"n"`
1818
Timeout int `help:"Timeout in seconds for stopping containers." short:"t" default:"10"`
1919
Volumes bool `help:"Remove named volumes declared in the 'volumes' section of the Compose file and anonymous volumes attached to containers." short:"v"`
2020
}

cmd/logs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
)
1414

1515
type LogsCmd struct {
16-
EnvDir string `help:"Directory to create the environment in. default: './env'" required:"" short:"d"`
17-
Name string `help:"Name of the environment to create. default: 'default'" required:"" short:"n"`
16+
EnvDir string `help:"Directory to create the environment in. default: './env'" short:"d"`
17+
Name string `help:"Name of the environment to create. default: 'default'" short:"n"`
1818
Follow bool `help:"Follow log output." short:"f"`
1919
}
2020

cmd/up.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
)
1616

1717
type UpCmd struct {
18-
EnvDir string `help:"Directory to create the environment in. default: './env'" required:"" short:"d"`
19-
Name string `help:"Name of the environment to create. default: 'default'" required:"" short:"n"`
18+
EnvDir string `help:"Directory to create the environment in. default: './env'"`
19+
Name string `help:"Name of the environment to create. default: 'default'" short:"n"`
2020
NoConfigure bool `help:"Don't template config files before starting containers"`
2121
Overwrite bool `help:"Overwrite existing environment if it exists." short:"o"`
2222
Detach bool `help:"Run containers in detached mode." short:"d"`

0 commit comments

Comments
 (0)