From 01dae8263d3449e4789ef545408e53afc9dfc09c Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Wed, 21 Feb 2024 20:34:23 -0500 Subject: [PATCH] feat(golang-rewrite): create placeholder plugin command structs --- cmd/main.go | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 03f0b8ea..6cb9661e 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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")