Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
refactor: apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
b4nst committed Apr 21, 2022
1 parent 8637e6b commit 654b281
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/cuebe/cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 63,7 @@ cuebe apply --dry-run .
factory.BuildContextAware(cmd)

f := cmd.Flags()
f.StringP("cluster", "c", "", "Cluster context. If starting with a $, it will be extracted at this path.")
f.StringP("cluster", "c", "", "Kube config context. If starting with a $, it will be extracted from the Build at this CUE path.")
return cmd
}

Expand All @@ -82,7 82,7 @@ func runApply(cmd *cobra.Command, args []string) {
ctx, err = build.LookupPath(path).String()
cobra.CheckErr(err)
}
if ctx == "" && !prompt.YesNo("Deploy on current context?", cmd.InOrStdin(), cmd.OutOrStdout()) {
if ctx == "" && !prompt.YesNo("Deploy on current kube config context?", cmd.InOrStdin(), cmd.OutOrStdout()) {
cobra.CheckErr("Canceled by user")
}
konfig, err := getK8sConfig(ctx)
Expand Down
8 changes: 4 additions & 4 deletions cmd/cuebe/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 29,9 @@ func newDeleteCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "delete",
SuggestFor: []string{"remove", "uninstall"},
Short: "Delete context from k8s cluster.",
Short: "Delete all instances found in Build.",
Long: `
Delete context from k8s cluster.
Delete all instances found in provided context from the k8s cluster.
It first group manifests found in the context by instance.
Then it deletes those instances.
Expand All @@ -52,7 52,7 @@ cuebe delete --dry-run .
factory.BuildContextAware(cmd)

f := cmd.Flags()
f.StringP("cluster", "c", "", "Cluster context. If starting with a $, it will be extracted at this path.")
f.StringP("cluster", "c", "", "Kube config context. If starting with a $, it will be extracted from the Build at this CUE path.")
return cmd
}

Expand All @@ -71,7 71,7 @@ func runDelete(cmd *cobra.Command, args []string) {
ctx, err = build.LookupPath(path).String()
cobra.CheckErr(err)
}
if ctx == "" && !prompt.YesNo("Delete from current context?", cmd.InOrStdin(), cmd.OutOrStdout()) {
if ctx == "" && !prompt.YesNo("Delete from current kube config context?", cmd.InOrStdin(), cmd.OutOrStdout()) {
cobra.CheckErr("Canceled by user")
}
konfig, err := getK8sConfig(ctx)
Expand Down

0 comments on commit 654b281

Please sign in to comment.