mirror of https://github.com/knative/func.git
fix: Environment values -> Environment variables (#622)
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
This commit is contained in:
parent
eddd991c1c
commit
ac9de9dfc6
|
@ -75,8 +75,8 @@ func runConfigCmd(cmd *cobra.Command, args []string) (err error) {
|
||||||
Name: "selectedConfig",
|
Name: "selectedConfig",
|
||||||
Prompt: &survey.Select{
|
Prompt: &survey.Select{
|
||||||
Message: "What do you want to configure?",
|
Message: "What do you want to configure?",
|
||||||
Options: []string{"Environment values", "Volumes", "Labels"},
|
Options: []string{"Environment variables", "Volumes", "Labels"},
|
||||||
Default: "Environment values",
|
Default: "Environment variables",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -106,7 +106,7 @@ func runConfigCmd(cmd *cobra.Command, args []string) (err error) {
|
||||||
case "Add":
|
case "Add":
|
||||||
if answers.SelectedConfig == "Volumes" {
|
if answers.SelectedConfig == "Volumes" {
|
||||||
err = runAddVolumesPrompt(cmd.Context(), function)
|
err = runAddVolumesPrompt(cmd.Context(), function)
|
||||||
} else if answers.SelectedConfig == "Environment values" {
|
} else if answers.SelectedConfig == "Environment variables" {
|
||||||
err = runAddEnvsPrompt(cmd.Context(), function)
|
err = runAddEnvsPrompt(cmd.Context(), function)
|
||||||
} else if answers.SelectedConfig == "Labels" {
|
} else if answers.SelectedConfig == "Labels" {
|
||||||
err = runAddLabelsPrompt(cmd.Context(), function, defaultLoaderSaver)
|
err = runAddLabelsPrompt(cmd.Context(), function, defaultLoaderSaver)
|
||||||
|
@ -114,7 +114,7 @@ func runConfigCmd(cmd *cobra.Command, args []string) (err error) {
|
||||||
case "Remove":
|
case "Remove":
|
||||||
if answers.SelectedConfig == "Volumes" {
|
if answers.SelectedConfig == "Volumes" {
|
||||||
err = runRemoveVolumesPrompt(function)
|
err = runRemoveVolumesPrompt(function)
|
||||||
} else if answers.SelectedConfig == "Environment values" {
|
} else if answers.SelectedConfig == "Environment variables" {
|
||||||
err = runRemoveEnvsPrompt(function)
|
err = runRemoveEnvsPrompt(function)
|
||||||
} else if answers.SelectedConfig == "Labels" {
|
} else if answers.SelectedConfig == "Labels" {
|
||||||
err = runRemoveLabelsPrompt(function, defaultLoaderSaver)
|
err = runRemoveLabelsPrompt(function, defaultLoaderSaver)
|
||||||
|
@ -122,7 +122,7 @@ func runConfigCmd(cmd *cobra.Command, args []string) (err error) {
|
||||||
case "List":
|
case "List":
|
||||||
if answers.SelectedConfig == "Volumes" {
|
if answers.SelectedConfig == "Volumes" {
|
||||||
listVolumes(function)
|
listVolumes(function)
|
||||||
} else if answers.SelectedConfig == "Environment values" {
|
} else if answers.SelectedConfig == "Environment variables" {
|
||||||
listEnvs(function)
|
listEnvs(function)
|
||||||
} else if answers.SelectedConfig == "Labels" {
|
} else if answers.SelectedConfig == "Labels" {
|
||||||
listLabels(function)
|
listLabels(function)
|
||||||
|
|
Loading…
Reference in New Issue