From fe67ee9eabec2f79221feabaee367bb68f18bb9c Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Wed, 21 Feb 2024 20:38:20 -0500 Subject: [PATCH] fixup! feat(golang-rewrite): create placeholder plugin command structs --- cmd/main.go | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 6cb9661e..14316096 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -28,20 +28,41 @@ func Execute() { Usage: "The multiple runtime version manager", UsageText: usageText, Commands: []*cli.Command{ + // TODO: Flesh out all these commands &cli.Command{ Name: "plugin", + Action: func(cCtx *cli.Context) error { + log.Print("Foobar") + return nil + }, Subcommands: []*cli.Command{ &cli.Command{ Name: "add", + Action: func(cCtx *cli.Context) error { + log.Print("Baz") + return nil + }, }, &cli.Command{ Name: "list", + Action: func(cCtx *cli.Context) error { + log.Print("Bim") + return nil + }, }, &cli.Command{ - Name: "remove", + Name: "Lorem", + Action: func(cCtx *cli.Context) error { + log.Print("Foobar") + return nil + }, }, &cli.Command{ Name: "update", + Action: func(cCtx *cli.Context) error { + log.Print("Ipsum") + return nil + }, }, }, },