Skip to content

Commit

Permalink
fixup! feat(golang-rewrite): create placeholder plugin command structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stratus3D committed Feb 22, 2024
1 parent 01dae82 commit fe67ee9
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
},
},
},
Expand Down

0 comments on commit fe67ee9

Please sign in to comment.