Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = models.Command{ Name: "domain", ShortHelp: "Print out the temporary domain name of the environment", LongHelp: "<code>domain</code> prints out the temporary domain name setup by Datica for an environment. " + "This domain name typically takes the form podXXXXX.catalyzeapps.com but may vary based on the environment. Here is a sample command\n\n" + "<pre>\ndatica -E \"<your_env_name>\" domain\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()) } if err := config.CheckRequiredAssociation(settings); err != nil { logrus.Fatal(err.Error()) } err := CmdDomain(settings.EnvironmentID, environments.New(settings), services.New(settings), sites.New(settings)) if err != nil { logrus.Fatalln(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 ¶
func CmdDomain ¶
func CmdDomain(envID string, ie environments.IEnvironments, is services.IServices, isites sites.ISites) error
CmdDomain prints out the namespace plus domain of the given environment
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.