Skip to content

Commit

Permalink
Rename lock note flag (#83)
Browse files Browse the repository at this point in the history
I've renamed the flag from `--name` to `--note` so it makes a bit more sense, and moved the commands into the "Stack management" category.
  • Loading branch information
adamconnelly authored Aug 29, 2022
1 parent 9ed27b3 commit 6ce41eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/stack/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type stackUnlockMutation struct {
}

var flagStackLockNote = &cli.StringFlag{
Name: "name",
Name: "note",
Usage: "Description of why the lock was acquired.",
Required: false,
}
Expand Down
10 changes: 6 additions & 4 deletions internal/cmd/stack/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ func Command() *cli.Command {
ArgsUsage: "COMMAND",
},
{
Name: "lock",
Usage: "Locks a stack for exclusive use.",
Category: "Stack management",
Name: "lock",
Usage: "Locks a stack for exclusive use.",
Flags: []cli.Flag{
flagStackID,
flagStackLockNote,
Expand All @@ -253,8 +254,9 @@ func Command() *cli.Command {
ArgsUsage: cmd.EmptyArgsUsage,
},
{
Name: "unlock",
Usage: "Unlocks a stack.",
Category: "Stack management",
Name: "unlock",
Usage: "Unlocks a stack.",
Flags: []cli.Flag{
flagStackID,
},
Expand Down

0 comments on commit 6ce41eb

Please sign in to comment.