refactor: move flags into internal/common
This commit is contained in:
parent
0fe0ffbafa
commit
cf1b46fa61
|
@ -365,6 +365,33 @@ var TagMessageFlag = &cli.StringFlag{
|
||||||
Destination: &TagMessage,
|
Destination: &TagMessage,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var Domain string
|
||||||
|
var DomainFlag = &cli.StringFlag{
|
||||||
|
Name: "domain",
|
||||||
|
Aliases: []string{"d"},
|
||||||
|
Value: "",
|
||||||
|
Usage: "Choose a domain name",
|
||||||
|
Destination: &Domain,
|
||||||
|
}
|
||||||
|
|
||||||
|
var NewAppServer string
|
||||||
|
var NewAppServerFlag = &cli.StringFlag{
|
||||||
|
Name: "server",
|
||||||
|
Aliases: []string{"s"},
|
||||||
|
Value: "",
|
||||||
|
Usage: "Show apps of a specific server",
|
||||||
|
Destination: &NewAppServer,
|
||||||
|
}
|
||||||
|
|
||||||
|
var NewAppName string
|
||||||
|
var NewAppNameFlag = &cli.StringFlag{
|
||||||
|
Name: "app-name",
|
||||||
|
Aliases: []string{"a"},
|
||||||
|
Value: "",
|
||||||
|
Usage: "Choose an app name",
|
||||||
|
Destination: &NewAppName,
|
||||||
|
}
|
||||||
|
|
||||||
// SSHFailMsg is a hopefully helpful SSH failure message
|
// SSHFailMsg is a hopefully helpful SSH failure message
|
||||||
var SSHFailMsg = `
|
var SSHFailMsg = `
|
||||||
Woops, Abra is unable to connect to connect to %s.
|
Woops, Abra is unable to connect to connect to %s.
|
||||||
|
|
|
@ -16,33 +16,6 @@ import (
|
||||||
|
|
||||||
type AppSecrets map[string]string
|
type AppSecrets map[string]string
|
||||||
|
|
||||||
var Domain string
|
|
||||||
var DomainFlag = &cli.StringFlag{
|
|
||||||
Name: "domain",
|
|
||||||
Aliases: []string{"d"},
|
|
||||||
Value: "",
|
|
||||||
Usage: "Choose a domain name",
|
|
||||||
Destination: &Domain,
|
|
||||||
}
|
|
||||||
|
|
||||||
var NewAppServer string
|
|
||||||
var NewAppServerFlag = &cli.StringFlag{
|
|
||||||
Name: "server",
|
|
||||||
Aliases: []string{"s"},
|
|
||||||
Value: "",
|
|
||||||
Usage: "Show apps of a specific server",
|
|
||||||
Destination: &NewAppServer,
|
|
||||||
}
|
|
||||||
|
|
||||||
var NewAppName string
|
|
||||||
var NewAppNameFlag = &cli.StringFlag{
|
|
||||||
Name: "app-name",
|
|
||||||
Aliases: []string{"a"},
|
|
||||||
Value: "",
|
|
||||||
Usage: "Choose an app name",
|
|
||||||
Destination: &NewAppName,
|
|
||||||
}
|
|
||||||
|
|
||||||
// RecipeName is used for configuring recipe name programmatically
|
// RecipeName is used for configuring recipe name programmatically
|
||||||
var RecipeName string
|
var RecipeName string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue