-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/* | ||
Copyright © 2023 NAME HERE <EMAIL ADDRESS> | ||
*/ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// pluginCmd represents the plugin command | ||
var pluginCmd = &cobra.Command{ | ||
Use: "plugin", | ||
Short: "A brief description of your command", | ||
Long: `A longer description that spans multiple lines and likely contains examples | ||
and usage of using your command. For example: | ||
Cobra is a CLI library for Go that empowers applications. | ||
This application is a tool to generate the needed files | ||
to quickly create a Cobra application.`, | ||
} | ||
|
||
// listCmd represents the plugin command | ||
var listCmd = &cobra.Command{ | ||
Use: "list", | ||
Short: "A brief description of your command", | ||
Long: `A longer description that spans multiple lines and likely contains examples | ||
and usage of using your command. For example: | ||
Cobra is a CLI library for Go that empowers applications. | ||
This application is a tool to generate the needed files | ||
to quickly create a Cobra application.`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Println("standalone called") | ||
}, | ||
} | ||
|
||
// listCmd represents the plugin command | ||
var installCmd = &cobra.Command{ | ||
Use: "install", | ||
Short: "A brief description of your command", | ||
Long: `A longer description that spans multiple lines and likely contains examples | ||
and usage of using your command. For example: | ||
Cobra is a CLI library for Go that empowers applications. | ||
This application is a tool to generate the needed files | ||
to quickly create a Cobra application.`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Println("standalone called") | ||
}, | ||
} | ||
|
||
// listCmd represents the plugin command | ||
var uninstallCmd = &cobra.Command{ | ||
Use: "uninstall", | ||
Short: "A brief description of your command", | ||
Long: `A longer description that spans multiple lines and likely contains examples | ||
and usage of using your command. For example: | ||
Cobra is a CLI library for Go that empowers applications. | ||
This application is a tool to generate the needed files | ||
to quickly create a Cobra application.`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Println("standalone called") | ||
}, | ||
} | ||
|
||
// listCmd represents the plugin command | ||
var updateCmd = &cobra.Command{ | ||
Use: "update", | ||
Short: "A brief description of your command", | ||
Long: `A longer description that spans multiple lines and likely contains examples | ||
and usage of using your command. For example: | ||
Cobra is a CLI library for Go that empowers applications. | ||
This application is a tool to generate the needed files | ||
to quickly create a Cobra application.`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Println("standalone called") | ||
}, | ||
} | ||
|
||
func init() { | ||
rootCmd.AddCommand(pluginCmd) | ||
pluginCmd.AddCommand(listCmd) | ||
pluginCmd.AddCommand(installCmd) | ||
pluginCmd.AddCommand(uninstallCmd) | ||
pluginCmd.AddCommand(updateCmd) | ||
// pluginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.