Some more naming tweaks
This commit is contained in:
@@ -18,13 +18,13 @@ import (
|
|||||||
func InitCommand(cfg *config.Config) *cli.Command {
|
func InitCommand(cfg *config.Config) *cli.Command {
|
||||||
return &cli.Command{
|
return &cli.Command{
|
||||||
Name: "init",
|
Name: "init",
|
||||||
Usage: "initialise an opencloud config",
|
Usage: "initialise an OpenCloud config",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "insecure",
|
Name: "insecure",
|
||||||
EnvVars: []string{"OC_INSECURE"},
|
EnvVars: []string{"OC_INSECURE"},
|
||||||
Value: "ask",
|
Value: "ask",
|
||||||
Usage: "Allow insecure opencloud config",
|
Usage: "Allow insecure OpenCloud config",
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "diff",
|
Name: "diff",
|
||||||
@@ -42,7 +42,7 @@ func InitCommand(cfg *config.Config) *cli.Command {
|
|||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "config-path",
|
Name: "config-path",
|
||||||
Value: defaults.BaseConfigPath(),
|
Value: defaults.BaseConfigPath(),
|
||||||
Usage: "Config path for the opencloud runtime",
|
Usage: "Config path for the OpenCloud runtime",
|
||||||
EnvVars: []string{"OC_CONFIG_DIR", "OC_BASE_DATA_PATH"},
|
EnvVars: []string{"OC_CONFIG_DIR", "OC_BASE_DATA_PATH"},
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
@@ -56,7 +56,7 @@ func InitCommand(cfg *config.Config) *cli.Command {
|
|||||||
insecureFlag := c.String("insecure")
|
insecureFlag := c.String("insecure")
|
||||||
insecure := false
|
insecure := false
|
||||||
if insecureFlag == "ask" {
|
if insecureFlag == "ask" {
|
||||||
answer := strings.ToLower(stringPrompt("Do you want to configure Infinite Scale with certificate checking disabled?\n This is not recommended for public instances! [yes | no = default]"))
|
answer := strings.ToLower(stringPrompt("Do you want to configure OpenCloud with certificate checking disabled?\n This is not recommended for public instances! [yes | no = default]"))
|
||||||
if answer == "yes" || answer == "y" {
|
if answer == "yes" || answer == "y" {
|
||||||
insecure = true
|
insecure = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user