2021-08-02 01:10:41 +00:00
|
|
|
package internal
|
2021-07-15 02:44:07 +00:00
|
|
|
|
2021-07-15 05:17:47 +00:00
|
|
|
import (
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
2021-08-02 06:36:35 +00:00
|
|
|
// Secrets stores the variable from SecretsFlag
|
2021-07-15 05:17:47 +00:00
|
|
|
var Secrets bool
|
2021-08-02 06:36:35 +00:00
|
|
|
|
|
|
|
// SecretsFlag turns on/off automatically generating secrets
|
2021-07-15 05:17:47 +00:00
|
|
|
var SecretsFlag = &cli.BoolFlag{
|
|
|
|
Name: "secrets",
|
2021-07-28 12:27:23 +00:00
|
|
|
Aliases: []string{"S"},
|
2021-07-15 05:17:47 +00:00
|
|
|
Value: false,
|
2021-07-28 09:30:14 +00:00
|
|
|
Usage: "Automatically generate secrets",
|
2021-07-15 05:17:47 +00:00
|
|
|
Destination: &Secrets,
|
|
|
|
}
|
|
|
|
|
2021-08-02 06:36:35 +00:00
|
|
|
// Pass stores the variable from PassFlag
|
2021-07-15 05:17:47 +00:00
|
|
|
var Pass bool
|
2021-08-02 06:36:35 +00:00
|
|
|
|
|
|
|
// PassFlag turns on/off storing generated secrets in pass
|
2021-07-15 05:17:47 +00:00
|
|
|
var PassFlag = &cli.BoolFlag{
|
|
|
|
Name: "pass",
|
2021-07-28 12:27:23 +00:00
|
|
|
Aliases: []string{"P"},
|
2021-07-15 05:17:47 +00:00
|
|
|
Value: false,
|
2021-07-30 20:54:30 +00:00
|
|
|
Usage: "Store the generated secrets in a local pass store",
|
2021-07-15 05:17:47 +00:00
|
|
|
Destination: &Pass,
|
|
|
|
}
|
|
|
|
|
2021-08-02 06:36:35 +00:00
|
|
|
// Context is temp
|
2021-07-17 08:29:25 +00:00
|
|
|
var Context string
|
2021-08-02 06:36:35 +00:00
|
|
|
|
|
|
|
// ContextFlag is temp
|
2021-07-17 08:29:25 +00:00
|
|
|
var ContextFlag = &cli.StringFlag{
|
|
|
|
Name: "context",
|
|
|
|
Value: "",
|
|
|
|
Aliases: []string{"c"},
|
|
|
|
Destination: &Context,
|
|
|
|
}
|
2021-08-05 10:02:13 +00:00
|
|
|
|
2021-09-04 23:55:10 +00:00
|
|
|
// Force force functionality without asking.
|
2021-08-05 10:02:13 +00:00
|
|
|
var Force bool
|
|
|
|
|
2021-09-04 23:55:10 +00:00
|
|
|
// ForceFlag turns on/off force functionality.
|
2021-08-05 10:02:13 +00:00
|
|
|
var ForceFlag = &cli.BoolFlag{
|
|
|
|
Name: "force",
|
|
|
|
Value: false,
|
|
|
|
Aliases: []string{"f"},
|
|
|
|
Destination: &Force,
|
|
|
|
}
|
2021-10-18 06:14:06 +00:00
|
|
|
|
|
|
|
// Chaos engages chaos mode.
|
|
|
|
var Chaos bool
|
|
|
|
|
|
|
|
// ChaosFlag turns on/off chaos functionality.
|
|
|
|
var ChaosFlag = &cli.BoolFlag{
|
|
|
|
Name: "chaos",
|
|
|
|
Value: false,
|
|
|
|
Aliases: []string{"ch"},
|
|
|
|
Usage: "Deploy uncommitted recipes changes. Use with care!",
|
|
|
|
Destination: &Chaos,
|
|
|
|
}
|
2021-10-18 20:16:29 +00:00
|
|
|
|
|
|
|
// DNSProvider specifies a DNS provider.
|
|
|
|
var DNSProvider string
|
|
|
|
|
|
|
|
// DNSProviderFlag selects a DNS provider.
|
|
|
|
var DNSProviderFlag = &cli.StringFlag{
|
|
|
|
Name: "provider",
|
|
|
|
Value: "",
|
|
|
|
Aliases: []string{"p"},
|
|
|
|
Usage: "DNS provider",
|
|
|
|
Destination: &DNSProvider,
|
|
|
|
Required: true,
|
|
|
|
}
|