提交 b217781b 编写于 作者: LinuxSuRen's avatar LinuxSuRen

remove unused codes

上级 3a3f957d
......@@ -50,13 +50,6 @@ var pluginCmd = &cobra.Command{
Use: "plugin",
Short: "Manage the plugins of Jenkins",
Long: `Manage the plugins of Jenkins`,
PreRun: func(cmd *cobra.Command, args []string) {
fmt.Printf("Inside subCmd PreRun with args: %v\n", args)
if pluginOpt.Upload {
fmt.Println("sdfsdf")
}
},
Run: func(cmd *cobra.Command, args []string) {
if pluginOpt.Upload {
crumb, config := getCrumb()
......
......@@ -48,7 +48,6 @@ var restartCmd = &cobra.Command{
if response.StatusCode != 200 {
if data, err := ioutil.ReadAll(response.Body); err == nil {
fmt.Println(string(data))
fmt.Println(response.StatusCode)
} else {
log.Fatal(err)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册