plugin.go 500 字节
Newer Older
LinuxSuRen's avatar
LinuxSuRen 已提交
1 2 3
package cmd

import (
4
	"github.com/jenkins-zh/jenkins-cli/app/i18n"
LinuxSuRen's avatar
LinuxSuRen 已提交
5 6 7
	"github.com/spf13/cobra"
)

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

13 14
var pluginOpt PluginOptions

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

var pluginCmd = &cobra.Command{
	Use:   "plugin",
21 22
	Short: i18n.T("Manage the plugins of Jenkins"),
	Long:  i18n.T("Manage the plugins of Jenkins"),
23 24 25
	Example: `  jcli plugin list
  jcli plugin search github
  jcli plugin check`,
LinuxSuRen's avatar
LinuxSuRen 已提交
26
}