Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = models.Command{ Name: "disassociate", ShortHelp: "Remove the association with an environment", LongHelp: "`disassociate` removes the environment from your list of associated environments but **does not** remove the catalyze git remote on the git repo. " + "Disassociate does not have to be run from within a git repo. Here is a sample command\n\n" + "```\ncatalyze disassociate myprod\n```", CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) { return func(cmd *cli.Cmd) { alias := cmd.StringArg("ENV_ALIAS", "", "The alias of an already associated environment to disassociate") cmd.Action = func() { err := CmdDisassociate(*alias, New(settings)) if err != nil { logrus.Fatal(err.Error()) } } cmd.Spec = "ENV_ALIAS" } }, }
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 CmdDisassociate ¶
func CmdDisassociate(alias string, id IDisassociate) error
Types ¶
type IDisassociate ¶
IDisassociate
func New ¶
func New(settings *models.Settings) IDisassociate
New returns an instance of IDisassociate
type SDisassociate ¶
SDisassociate is a concrete implementation of IDisassociate
func (*SDisassociate) Disassociate ¶
func (d *SDisassociate) Disassociate(alias string) error
Disassociate removes an existing association with the environment. The `catalyze` remote on the local github repo will *NOT* be removed.
Click to show internal directories.
Click to hide internal directories.