diff --git a/tools/goctl/env/install.go b/tools/goctl/env/install.go new file mode 100644 index 00000000..6edea2f1 --- /dev/null +++ b/tools/goctl/env/install.go @@ -0,0 +1,9 @@ +package env + +import "github.com/urfave/cli" + +func Install(c *cli.Context) error { + force := c.Bool("force") + verbose := c.Bool("verbose") + return Prepare(true, force, verbose) +} diff --git a/tools/goctl/goctl.go b/tools/goctl/goctl.go index e91d7f8f..69f98487 100644 --- a/tools/goctl/goctl.go +++ b/tools/goctl/goctl.go @@ -57,6 +57,21 @@ var commands = []cli.Command{ }, }, Subcommands: []cli.Command{ + { + Name: "install", + Usage: "goctl env installation", + Action: env.Install, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "force,f", + Usage: "silent installation of non-existent dependencies", + }, + cli.BoolFlag{ + Name: "verbose, v", + Usage: "enable log output", + }, + }, + }, { Name: "check", Usage: "detect goctl env and dependency tools",