Skip to content

Commit

Permalink
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 ff040aa commit 01dae82
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,45 @@ import (
"github.com/urfave/cli/v2"
)

const usageText = `The Multiple Runtime Version Manager.
Manage all your runtime versions with one tool!
Complete documentation is available at https://asdf-vm.com/`

func Execute() {
app := &cli.App{
Name: "asdf",
Version: "0.1.0",
Usage: "The multiple runtime version manager",
UsageText: `The Multiple Runtime Version Manager.
Manage all your runtime versions with one tool!
Complete documentation is available at https://asdf-vm.com/`,
// Not really sure what I should put here, but all the new Golang code will
// likely be written by me.
Copyright: "(c) 2024 Trevor Brown",
Authors: []*cli.Author{
&cli.Author{
Name: "Trevor Brown",
},
},
Usage: "The multiple runtime version manager",
UsageText: usageText,
Commands: []*cli.Command{
&cli.Command{
Name: "plugin",
Subcommands: []*cli.Command{
&cli.Command{
Name: "add",
},
&cli.Command{
Name: "list",
},
&cli.Command{
Name: "remove",
},
&cli.Command{
Name: "update",
},
},
},
},
Action: func(cCtx *cli.Context) error {
// TODO: flesh this out
log.Print("Late but latest -- Rajinikanth")
Expand Down

0 comments on commit 01dae82

Please sign in to comment.