@@ -15,16 +15,15 @@ import (
1515)
1616
1717type UpCmd struct {
18- EnvDir string `help:"Directory containing the environment." required:"" default:"./env"`
19- Name string `help:"Name of the environment to start." required:"" short:"n" default:"default"`
20- NoConfigure bool `help:"Don't template config files before starting containers"`
21- Overwrite bool `help:"Overwrite existing environment if it exists." short:"o"`
22- Detach bool `help:"Run containers in detached mode." short:"d"`
23- Build bool `help:"Build images before starting containers." short:"b"`
24- NoCache bool `help:"Do not use cache when building images." short:"c"`
25- WithConfig string `help:"Path to a custom configuration file. Replaces the default config." type:"existingfile"`
18+ EnvDir string `help:"Directory containing the environment." required:"" default:"./env"`
19+ Name string `help:"Name of the environment to start." required:"" short:"n" default:"default"`
20+ NoConfigure bool `help:"Don't template config files before starting containers"`
21+ Overwrite bool `help:"Overwrite existing environment if it exists." short:"o"`
22+ Detach bool `help:"Run containers in detached mode." short:"d"`
23+ Build bool `help:"Build images before starting containers." short:"b"`
24+ NoCache bool `help:"Do not use cache when building images." short:"c"`
25+ WithConfig string `help:"Path to a custom configuration file. Replaces the default config." type:"existingfile"`
2626 WithDockerCompose string `help:"Path to a custom Docker Compose file. Replaces the default file." type:"existingfile"`
27-
2827}
2928
3029func (c * UpCmd ) Run () error {
@@ -71,7 +70,7 @@ func (c *UpCmd) Run() error {
7170 cmd .Stderr = os .Stderr
7271 cmd .Dir = filepath .Join (c .EnvDir , c .Name )
7372 if err := cmd .Run (); err != nil {
74- if errors .Is (ctx .Err (), context .Canceled ) {
73+ if errors .Is (ctx .Err (), context .Canceled ) {
7574 return nil
7675 }
7776 return err
0 commit comments