Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = models.Command{ Name: "init", ShortHelp: "Get started using the Datica platform", LongHelp: "The <code>init</code> command walks you through setting up the CLI to use with the Datica platform. " + "The <code>init</code> command requires you to have an environment already set up. ", CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) { return func(cmd *cli.Cmd) { cmd.Action = func() { p := prompts.New() if _, err := auth.New(settings, p).Signin(); err != nil { logrus.Fatal(err.Error()) } err := CmdInit(settings, p) if err != nil { logrus.Fatal(err.Error()) } } } }, }
Cmd is the contract between the user and the CLI. This specifies the command name, arguments, and required/optional arguments and flags for the command.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.