Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = models.Command{ Name: "associated", ShortHelp: "Lists all associated environments", LongHelp: "`associated` outputs information about all previously associated environments on your local machine. " + "The information that is printed out includes the alias, environment ID, actual environment name, service ID, and the git repo directory. Here is a sample command\n\n" + "```\ncatalyze associated\n```", CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) { return func(cmd *cli.Cmd) { cmd.Action = func() { err := CmdAssociated(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 ¶
func CmdAssociated ¶
func CmdAssociated(ia IAssociated) error
Types ¶
type IAssociated ¶
type IAssociated interface {
Associated() (map[string]models.AssociatedEnv, error)
}
IAssociated
type SAssociated ¶
SAssociated is a concrete implementation of IAssociated
func (*SAssociated) Associated ¶
func (a *SAssociated) Associated() (map[string]models.AssociatedEnv, error)
Associated lists all currently associated environments.
Click to show internal directories.
Click to hide internal directories.