Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = models.Command{ Name: "whoami", ShortHelp: "Retrieve your user ID", LongHelp: "<code>whoami</code> prints out the currently logged in user's users ID. " + "This is used with Datica support engineers. Here is a sample command\n\n" + "<pre>\ndatica whoami\n</pre>", CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) { return func(cmd *cli.Cmd) { cmd.Action = func() { if _, err := auth.New(settings, prompts.New()).Signin(); err != nil { logrus.Fatal(err.Error()) } err := CmdWhoAmI(New(settings)) 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 ¶
Click to show internal directories.
Click to hide internal directories.