From 5e5211915850f9151ed7c5ab5b466cbf7b5ac79c Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Sat, 18 May 2024 19:00:27 +0100 Subject: [PATCH] checkpoint: add remove subcommand --- cmd/enbas/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/enbas/main.go b/cmd/enbas/main.go index b541d7b..3a5e8de 100644 --- a/cmd/enbas/main.go +++ b/cmd/enbas/main.go @@ -53,6 +53,7 @@ func run() error { updateResource string = "update" whoami string = "whoami" add string = "add" + remove string = "remove" ) summaries := map[string]string{ @@ -65,6 +66,7 @@ func run() error { updateResource: "update a specific resource", whoami: "print the account that you are currently logged in to", add: "add a resource to another resource", + remove: "remove a resource from another resource", } flag.Usage = enbasUsageFunc(summaries) @@ -101,6 +103,8 @@ func run() error { executor = newWhoAmICommand(whoami, summaries[whoami]) case add: executor = newAddCommand(add, summaries[add]) + case remove: + executor = newRemoveCommand(remove, summaries[remove]) default: flag.Usage() return fmt.Errorf("unknown subcommand %q", subcommand)