Skip to content

Commit

Permalink
Add start and stop command aliases for up and down
Browse files Browse the repository at this point in the history
  • Loading branch information
bensallen committed Dec 23, 2019
1 parent b58279a commit b517e71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ func Run() error {

upSubcommand = flaggy.NewSubcommand("up")
upSubcommand.Description = "Start VMs"
upSubcommand.ShortName = "start"
upSubcommand.AddPositionalValue(&vmName, "name", 1, false, "Specify a VM, otherwise all VMs will be run")

downSubcommand = flaggy.NewSubcommand("down")
downSubcommand.Description = "Stop VMs"
downSubcommand.ShortName = "stop"
var downSignal string
downSubcommand.String(&downSignal, "s", "signal", "Signal to send to VM")
downSubcommand.AddPositionalValue(&vmName, "name", 1, false, "Specify a VM, otherwise all VMs will be stopped")
Expand Down

0 comments on commit b517e71

Please sign in to comment.