supportids

package
v2.0.0-snapshot...-58e3a78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = models.Command{
	Name:      "support-ids",
	ShortHelp: "Print out various IDs related to your associated environment to be used when contacting Catalyze support",
	LongHelp: "`support-ids` is helpful when contacting Catalyze support by sending an email to support@catalyze.io. " +
		"If you are having an issue with a CLI command or anything with your environment, it is helpful to run this command and copy the output into the initial correspondence with a Catalyze engineer. " +
		"This will help Catalyze identify the environment faster and help come to resolution faster. Here is a sample command\n\n" +
		"```\ncatalyze -E \"<your_env_alias>\" support-ids\n```",
	CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) {
		return func(cmd *cli.Cmd) {
			cmd.Action = func() {
				err := CmdSupportIDs(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 CmdSupportIDs

func CmdSupportIDs(is ISupportIDs) error

Types

type ISupportIDs

type ISupportIDs interface {
	SupportIDs() (string, string, string, string, string, error)
}

ISupportIDs

func New

func New(settings *models.Settings) ISupportIDs

New returns an instance of ISupportIDs

type SSupportIDs

type SSupportIDs struct {
	Settings *models.Settings
}

SSupportIDs is a concrete implementation of ISupportIDs

func (*SSupportIDs) SupportIDs

func (s *SSupportIDs) SupportIDs() (string, string, string, string, string, error)

SupportIDs prints out various IDs related to the associated environment to be used when contacting Catalyze support at support@catalyze.io.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL