Skip to content

Commit

Permalink
Merge pull request #23 from future-architect/issue15
Browse files Browse the repository at this point in the history
[fix] fix typo
  • Loading branch information
orangekame3 authored Oct 22, 2023
2 parents f5de11f + dd74fe7 commit 3eddee1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var applyCmd = &cobra.Command{

selected := make([]string, 0, 100)
items, _ := cmd.Flags().GetInt("items")
if err := survey.AskOne(&survey.MultiSelect{Message: "Select resources to target destroy:", Options: options, IgnoreCheckItem: exitOpt, HideFilter: true}, &selected, survey.WithPageSize(items)); err != nil {
if err := survey.AskOne(&survey.MultiSelect{Message: "Select resources to target apply:", Options: options, IgnoreCheckItem: exitOpt, HideFilter: true}, &selected, survey.WithPageSize(items)); err != nil {
return fmt.Errorf("select resource :%w", err)
}
if len(selected) == 0 {
Expand Down
6 changes: 3 additions & 3 deletions cmd/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
)

var (
resouceNotSelected = color.Green.Sprint("resource not seleced")
exitSelected = color.Green.Sprintf("exit seleced")
resouceNotSelected = color.Green.Sprint("resource not selected")
exitSelected = color.Green.Sprintf("exit selected")
notFound = color.Green.Sprintf("not found target resource")
s = spinner.New(spinner.CharSets[14], 100*time.Millisecond)
exitOpt = color.Red.Sprintf("%s", "exit (cancel terraform plan)")
Expand All @@ -26,5 +26,5 @@ var (
)

func notExecuted(action string) string {
return color.Green.Sprintf("%s exit seleced", action)
return color.Green.Sprintf("%s exit selected", action)
}
2 changes: 1 addition & 1 deletion cmd/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var planCmd = &cobra.Command{

selected := make([]string, 0, 100)
items, _ := cmd.Flags().GetInt("items")
if err := survey.AskOne(&survey.MultiSelect{Message: "Select resources to target destroy:", Options: options, IgnoreCheckItem: exitOpt, HideFilter: true}, &selected, survey.WithPageSize(items)); err != nil {
if err := survey.AskOne(&survey.MultiSelect{Message: "Select resources to target plan:", Options: options, IgnoreCheckItem: exitOpt, HideFilter: true}, &selected, survey.WithPageSize(items)); err != nil {
return fmt.Errorf("select resource :%w", err)
}
if len(selected) == 0 {
Expand Down

0 comments on commit 3eddee1

Please sign in to comment.