Skip to content

Commit

Permalink
- change flag from "state" to "status" after discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
noamsdahan committed Aug 16, 2023
1 parent 3c886a5 commit ca2de22
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cmd/commands/common/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func CommandBefore(c *cli.Context) error {
return err
}
}
if state := c.String("state"); state != "" {
if state := c.String("status"); state != "" {
if _, err := cnappgoat.StateFromString(state); err != nil {
return err
}
Expand Down Expand Up @@ -75,8 +75,8 @@ func CommandFlags() []cli.Flag {
Aliases: []string{"p"},
},
&cli.StringFlag{
Name: "state",
Usage: "CNAPPgoat state to filter on, e.g. 'Deployed', 'Destroyed', 'Error', 'Not Deployed'",
Name: "status",
Usage: "CNAPPgoat status to filter on, e.g. 'Deployed', 'Destroyed', 'Error', 'Not Deployed'",
Aliases: []string{"s"},
},
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/commands/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var DescribeCommand = &cli.Command{
reg,
c.String("module"),
c.String("platform"),
c.String("state"))
c.String("status"))
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/commands/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var DestroyCommand = &cli.Command{
reg,
c.String("module"),
c.String("platform"),
c.String("state"))
c.String("status"))
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/commands/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var ListCommand = &cli.Command{
reg,
c.String("module"),
c.String("platform"),
c.String("state"))
c.String("status"))
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/commands/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var ProvisionCommand = &cli.Command{
reg,
c.String("module"),
c.String("platform"),
c.String("state"))
c.String("status"))
if err != nil {
return err
}
Expand Down

0 comments on commit ca2de22

Please sign in to comment.