From a49d2f403fad20983e605751f2f56b7752a630ff Mon Sep 17 00:00:00 2001 From: Zhao Xiaojie Date: Sat, 27 Jul 2019 20:32:40 +0800 Subject: [PATCH] Change org from linuxsuren to jenkins-zh --- Makefile | 2 +- README-zh.md | 8 ++++---- README.md | 8 ++++---- app/cmd/center.go | 2 +- app/cmd/config_list.go | 2 +- app/cmd/job_build.go | 2 +- app/cmd/job_create.go | 2 +- app/cmd/job_delete.go | 2 +- app/cmd/job_edit.go | 2 +- app/cmd/job_history.go | 4 ++-- app/cmd/job_log.go | 2 +- app/cmd/job_search.go | 2 +- app/cmd/job_type.go | 4 ++-- app/cmd/plugin_check.go | 2 +- app/cmd/plugin_download.go | 2 +- app/cmd/plugin_install.go | 2 +- app/cmd/plugin_list.go | 4 ++-- app/cmd/plugin_search.go | 4 ++-- app/cmd/plugin_trend.go | 2 +- app/cmd/plugin_uninstall.go | 2 +- app/cmd/plugin_upload.go | 2 +- app/cmd/queue.go | 2 +- app/cmd/restart.go | 2 +- app/cmd/root.go | 2 +- app/cmd/user.go | 2 +- app/cmd/user_create.go | 2 +- app/cmd/user_delete.go | 2 +- app/cmd/user_edit.go | 2 +- app/cmd/user_token.go | 2 +- client/user.go | 2 +- go.mod | 2 +- main.go | 2 +- 32 files changed, 42 insertions(+), 42 deletions(-) diff --git a/Makefile b/Makefile index 41b3d17..ad9054c 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ GO := go BUILD_TARGET = build COMMIT := $(shell git rev-parse --short HEAD) VERSION := dev-$(shell git describe --tags $(shell git rev-list --tags --max-count=1)) -BUILDFLAGS = -ldflags "-X github.com/linuxsuren/jenkins-cli/app.version=$(VERSION) -X github.com/linuxsuren/jenkins-cli/app.commit=$(COMMIT)" +BUILDFLAGS = -ldflags "-X github.com/jenkins-zh/jenkins-cli/app.version=$(VERSION) -X github.com/jenkins-zh/jenkins-cli/app.commit=$(COMMIT)" COVERED_MAIN_SRC_FILE=./main darwin: ## Build for OSX diff --git a/README-zh.md b/README-zh.md index 9faca98..bbba678 100644 --- a/README-zh.md +++ b/README-zh.md @@ -1,6 +1,6 @@ # Jenkins CLI -[![Go Report Card](https://goreportcard.com/badge/linuxsuren/jenkins-cli)](https://goreportcard.com/report/linuxsuren/jenkins-cli) +[![Go Report Card](https://goreportcard.com/badge/jenkins-zh/jenkins-cli)](https://goreportcard.com/report/jenkins-zh/jenkins-cli) Jenkins CLI 可以帮忙你轻松地管理 Jenkins。不管你是一名插件开发者、管理员或者只是一个普通的 Jenkins 用户,它都是为你而生的! @@ -21,7 +21,7 @@ Jenkins CLI 可以帮忙你轻松地管理 Jenkins。不管你是一名插件开 你可以通过 `brew` 来安装 jcli。 ``` -brew tap linuxsuren/jcli +brew tap jenkins-zh/jcli brew install jcli ``` @@ -29,13 +29,13 @@ brew install jcli 要在 Linux 操作系统上安装 `jcli` 的话,非常简单。只需要执行下面的命令即可: ``` -curl -L https://github.com/linuxsuren/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv +curl -L https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv sudo mv jcli /usr/local/bin/ ``` ## Windows -你只要[点击这里](https://github.com/linuxsuren/jenkins-cli/releases/latest/download/jcli-windows-386.tar.gz)就可以下载到最新版本的压缩包。之后,把解压后的文件 `jcli` 拷贝到你的系统目录下即可。 +你只要[点击这里](https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-windows-386.tar.gz)就可以下载到最新版本的压缩包。之后,把解压后的文件 `jcli` 拷贝到你的系统目录下即可。 # 入门 diff --git a/README.md b/README.md index 79d8cb8..e74ad8e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Jenkins CLI -[![Go Report Card](https://goreportcard.com/badge/linuxsuren/jenkins-cli)](https://goreportcard.com/report/linuxsuren/jenkins-cli) +[![Go Report Card](https://goreportcard.com/badge/jenkins-zh/jenkins-cli)](https://goreportcard.com/report/jenkins-zh/jenkins-cli) Jenkins CLI allows you manage your Jenkins as an easy way. No matter you're a plugin developer, administrator or just a regular user, it borns for you! @@ -22,7 +22,7 @@ We support mac, linux and windows for now. You can use `brew` to install jcli. ``` -brew tap linuxsuren/jcli +brew tap jenkins-zh/jcli brew install jcli ``` @@ -30,13 +30,13 @@ brew install jcli It's very simple to install `jcli` into your Linux OS. Just need to execute a command line at below: ``` -curl -L https://github.com/linuxsuren/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv +curl -L https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv sudo mv jcli /usr/local/bin/ ``` ## Windows -You can find the latest version by [click here](https://github.com/linuxsuren/jenkins-cli/releases/latest/download/jcli-windows-386.tar.gz). Then download the tar file, cp the uncompressed `jcli` directory into your system path. +You can find the latest version by [click here](https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-windows-386.tar.gz). Then download the tar file, cp the uncompressed `jcli` directory into your system path. # Get started diff --git a/app/cmd/center.go b/app/cmd/center.go index c5c009e..d88dc64 100644 --- a/app/cmd/center.go +++ b/app/cmd/center.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/config_list.go b/app/cmd/config_list.go index fbb1527..9c0fcc4 100644 --- a/app/cmd/config_list.go +++ b/app/cmd/config_list.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/linuxsuren/jenkins-cli/util" + "github.com/jenkins-zh/jenkins-cli/util" "github.com/spf13/cobra" ) diff --git a/app/cmd/job_build.go b/app/cmd/job_build.go index 971150c..f6d62e2 100644 --- a/app/cmd/job_build.go +++ b/app/cmd/job_build.go @@ -6,7 +6,7 @@ import ( "log" "github.com/AlecAivazis/survey" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/job_create.go b/app/cmd/job_create.go index 1dbe650..17b4e41 100644 --- a/app/cmd/job_create.go +++ b/app/cmd/job_create.go @@ -4,7 +4,7 @@ import ( "log" "github.com/AlecAivazis/survey" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/job_delete.go b/app/cmd/job_delete.go index f3117a6..7dad783 100644 --- a/app/cmd/job_delete.go +++ b/app/cmd/job_delete.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/job_edit.go b/app/cmd/job_edit.go index e1f6492..c2a9d04 100644 --- a/app/cmd/job_edit.go +++ b/app/cmd/job_edit.go @@ -5,7 +5,7 @@ import ( "log" "github.com/AlecAivazis/survey" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/job_history.go b/app/cmd/job_history.go index cbc1e74..c6f21fe 100644 --- a/app/cmd/job_history.go +++ b/app/cmd/job_history.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/linuxsuren/jenkins-cli/client" - "github.com/linuxsuren/jenkins-cli/util" + "github.com/jenkins-zh/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/util" "github.com/spf13/cobra" ) diff --git a/app/cmd/job_log.go b/app/cmd/job_log.go index b8de621..0918ad2 100644 --- a/app/cmd/job_log.go +++ b/app/cmd/job_log.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/job_search.go b/app/cmd/job_search.go index 8b09ea7..12eedab 100644 --- a/app/cmd/job_search.go +++ b/app/cmd/job_search.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/job_type.go b/app/cmd/job_type.go index 5476529..39b7e72 100644 --- a/app/cmd/job_type.go +++ b/app/cmd/job_type.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/linuxsuren/jenkins-cli/client" - "github.com/linuxsuren/jenkins-cli/util" + "github.com/jenkins-zh/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/util" "github.com/spf13/cobra" ) diff --git a/app/cmd/plugin_check.go b/app/cmd/plugin_check.go index 5d54d85..8d73145 100644 --- a/app/cmd/plugin_check.go +++ b/app/cmd/plugin_check.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/plugin_download.go b/app/cmd/plugin_download.go index e9e6e91..3dd0927 100644 --- a/app/cmd/plugin_download.go +++ b/app/cmd/plugin_download.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/plugin_install.go b/app/cmd/plugin_install.go index 78b5c76..6228dd7 100644 --- a/app/cmd/plugin_install.go +++ b/app/cmd/plugin_install.go @@ -5,7 +5,7 @@ import ( "log" "github.com/AlecAivazis/survey" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/plugin_list.go b/app/cmd/plugin_list.go index bccae9a..6570f32 100644 --- a/app/cmd/plugin_list.go +++ b/app/cmd/plugin_list.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "github.com/linuxsuren/jenkins-cli/client" - "github.com/linuxsuren/jenkins-cli/util" + "github.com/jenkins-zh/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/util" "github.com/spf13/cobra" ) diff --git a/app/cmd/plugin_search.go b/app/cmd/plugin_search.go index e1a664c..9816f49 100644 --- a/app/cmd/plugin_search.go +++ b/app/cmd/plugin_search.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "github.com/linuxsuren/jenkins-cli/client" - "github.com/linuxsuren/jenkins-cli/util" + "github.com/jenkins-zh/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/util" "github.com/spf13/cobra" ) diff --git a/app/cmd/plugin_trend.go b/app/cmd/plugin_trend.go index 11fc004..9471681 100644 --- a/app/cmd/plugin_trend.go +++ b/app/cmd/plugin_trend.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/plugin_uninstall.go b/app/cmd/plugin_uninstall.go index 7e99939..3544fce 100644 --- a/app/cmd/plugin_uninstall.go +++ b/app/cmd/plugin_uninstall.go @@ -3,7 +3,7 @@ package cmd import ( "log" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/plugin_upload.go b/app/cmd/plugin_upload.go index a1365c5..37875ad 100644 --- a/app/cmd/plugin_upload.go +++ b/app/cmd/plugin_upload.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/queue.go b/app/cmd/queue.go index f63c031..bb3e6c1 100644 --- a/app/cmd/queue.go +++ b/app/cmd/queue.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/restart.go b/app/cmd/restart.go index 85f7915..9242b6a 100644 --- a/app/cmd/restart.go +++ b/app/cmd/restart.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/AlecAivazis/survey" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/root.go b/app/cmd/root.go index e1fad23..6cb83e9 100644 --- a/app/cmd/root.go +++ b/app/cmd/root.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/linuxsuren/jenkins-cli/app" + "github.com/jenkins-zh/jenkins-cli/app" "github.com/spf13/cobra" ) diff --git a/app/cmd/user.go b/app/cmd/user.go index 20476b8..112cbc7 100644 --- a/app/cmd/user.go +++ b/app/cmd/user.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/user_create.go b/app/cmd/user_create.go index 1f435fd..1258da2 100644 --- a/app/cmd/user_create.go +++ b/app/cmd/user_create.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/user_delete.go b/app/cmd/user_delete.go index fac45e1..1772041 100644 --- a/app/cmd/user_delete.go +++ b/app/cmd/user_delete.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/user_edit.go b/app/cmd/user_edit.go index ee614f8..740351d 100644 --- a/app/cmd/user_edit.go +++ b/app/cmd/user_edit.go @@ -4,7 +4,7 @@ import ( "log" "github.com/AlecAivazis/survey" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/app/cmd/user_token.go b/app/cmd/user_token.go index 79681b4..f1cf353 100644 --- a/app/cmd/user_token.go +++ b/app/cmd/user_token.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/linuxsuren/jenkins-cli/client" + "github.com/jenkins-zh/jenkins-cli/client" "github.com/spf13/cobra" ) diff --git a/client/user.go b/client/user.go index fe58917..83fceff 100644 --- a/client/user.go +++ b/client/user.go @@ -10,7 +10,7 @@ import ( "strings" "github.com/Pallinder/go-randomdata" - "github.com/linuxsuren/jenkins-cli/util" + "github.com/jenkins-zh/jenkins-cli/util" ) type UserClient struct { diff --git a/go.mod b/go.mod index 26e2cf2..27f9a08 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/linuxsuren/jenkins-cli +module github.com/jenkins-zh/jenkins-cli replace github.com/AlecAivazis/survey v1.8.5 => gopkg.in/AlecAivazis/survey.v1 v1.8.5 diff --git a/main.go b/main.go index 59578b6..0323259 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/linuxsuren/jenkins-cli/app/cmd" + "github.com/jenkins-zh/jenkins-cli/app/cmd" ) func main() { -- GitLab