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)