plugin.go 486 字节
Newer Older
LinuxSuRen's avatar
LinuxSuRen 已提交
1 2 3 4 5 6
package cmd

import (
	"github.com/spf13/cobra"
)

7
// PluginOptions contains the command line options
LinuxSuRen's avatar
LinuxSuRen 已提交
8 9 10
type PluginOptions struct {
}

11 12
var pluginOpt PluginOptions

LinuxSuRen's avatar
LinuxSuRen 已提交
13 14 15 16 17 18
func init() {
	rootCmd.AddCommand(pluginCmd)
}

var pluginCmd = &cobra.Command{
	Use:   "plugin",
19 20
	Short: "Manage the plugins of Jenkins",
	Long:  `Manage the plugins of Jenkins`,
21 22 23
	Example: `  jcli plugin list
  jcli plugin search github
  jcli plugin check`,
yJunS's avatar
yJunS 已提交
24
	Run: func(cmd *cobra.Command, _ []string) {
25
		cmd.Help()
LinuxSuRen's avatar
LinuxSuRen 已提交
26 27
	},
}