From b517e71ffea4dbb6842e42204e3f97b88891a9fd Mon Sep 17 00:00:00 2001 From: "Benjamin S. Allen" Date: Mon, 23 Dec 2019 10:14:14 -0600 Subject: [PATCH] Add start and stop command aliases for up and down --- internal/root/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/root/root.go b/internal/root/root.go index 97a8101..ba087cd 100644 --- a/internal/root/root.go +++ b/internal/root/root.go @@ -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")