Skip to content

Commit

Permalink
changed project name
Browse files Browse the repository at this point in the history
  • Loading branch information
gocruncher committed Sep 15, 2020
1 parent dc57269 commit 864cf73
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
./cache
/vendor/
/release/
jenkins-job-ctl
jenkins-job-cli
/trush/
/_build/
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME=jenkins-job-ctl
NAME=jenkins-job-cli
VERSION=$(shell cat VERSION)
BUILD=$(shell git rev-parse --short HEAD)
EXT_LD_FLAGS="-Wl,--allow-multiple-definition"
Expand All @@ -10,22 +10,22 @@ clean:

build:
go mod download
CGO_ENABLED=0 go build -tags release -ldflags $(LD_FLAGS) -o jenkins-job-ctl
CGO_ENABLED=0 go build -tags release -ldflags $(LD_FLAGS) -o jenkins-job-cli

build-dev:
go build -ldflags "-w -X main.version=$(VERSION)-dev -X main.build=$(BUILD) -extldflags=$(EXT_LD_FLAGS)"

build-all:
mkdir -p _build
GOOS=darwin GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-ctl-$(VERSION)-darwin-amd64
GOOS=linux GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-ctl-$(VERSION)-linux-amd64
GOOS=linux GOARCH=arm go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-ctl-$(VERSION)-linux-arm
GOOS=linux GOARCH=arm64 go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-ctl-$(VERSION)-linux-arm64
GOOS=windows GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-ctl-$(VERSION)-windows-amd64
GOOS=darwin GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-cli-$(VERSION)-darwin-amd64
GOOS=linux GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-cli-$(VERSION)-linux-amd64
GOOS=linux GOARCH=arm go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-cli-$(VERSION)-linux-arm
GOOS=linux GOARCH=arm64 go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-cli-$(VERSION)-linux-arm64
GOOS=windows GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/jenkins-job-cli-$(VERSION)-windows-amd64
cd _build; sha256sum * > sha256sums.txt

image:
docker build -t jenkins-job-ctl -f Dockerfile .
docker build -t jenkins-job-cli -f Dockerfile .

release:
mkdir release
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ An execution will be like this:
![terminal demo](assets/demo.gif)

## Install
Fetch the [latest release](https://github.com/gocruncher/jenkins-job-ctl/releases) for your platform:
Fetch the [latest release](https://github.com/gocruncher/jenkins-job-cli/releases) for your platform:

#### Linux

```bash
sudo wget https://github.com/gocruncher/jenkins-job-ctl/releases/download/v1.0.1/jenkins-job-ctl-1.0.1-linux-amd64 -O /usr/local/bin/jj
sudo wget https://github.com/gocruncher/jenkins-job-cli/releases/download/v1.0.1/jenkins-job-cli-1.0.1-linux-amd64 -O /usr/local/bin/jj
sudo chmod +x /usr/local/bin/jj
```

Expand All @@ -24,7 +24,7 @@ brew install jj
```
#### OS X bash
```bash
sudo curl -Lo /usr/local/bin/jj https://github.com/gocruncher/jenkins-job-ctl/releases/download/v1.0.1/jenkins-job-ctl-1.0.1-darwin-amd64
sudo curl -Lo /usr/local/bin/jj https://github.com/gocruncher/jenkins-job-cli/releases/download/v1.0.1/jenkins-job-cli-1.0.1-darwin-amd64
sudo chmod +x /usr/local/bin/jj
```

Expand Down Expand Up @@ -93,4 +93,4 @@ jj use PROD
- support of a terminal window resizing

## License
`jenkins-job-ctl` is open-sourced software licensed under the [MIT](LICENSE) license.
`jenkins-job-cli` is open-sourced software licensed under the [MIT](LICENSE) license.
2 changes: 1 addition & 1 deletion cmd/del.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"fmt"
"github.com/gocruncher/jenkins-job-ctl/cmd/jj"
"github.com/gocruncher/jenkins-job-cli/cmd/jj"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd

import (
"fmt"
"github.com/gocruncher/jenkins-job-ctl/cmd/jj"
"github.com/gocruncher/jenkins-job-cli/cmd/jj"
"github.com/spf13/cobra"
"os"
"regexp"
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"bytes"
"errors"
"fmt"
"github.com/gocruncher/jenkins-job-ctl/cmd/jj"
"github.com/gocruncher/jenkins-job-cli/cmd/jj"
"github.com/spf13/cobra"
"io"
"os"
Expand Down Expand Up @@ -86,7 +86,7 @@ const defaultBoilerPlate = `
var rootCmd = &cobra.Command{
Use: "jj",
Short: "jj - simple command line utility which just runs any jenkins job",
Long: `jenkins-job-ctl(jj) is a simple command-line utility which just runs
Long: `jenkins-job-cli(jj) is a simple command-line utility which just runs
any Jenkins job. Before you start, please configure access to
to the Jenkins service using "jj set" command. After that, you can
enable shell autocompletion for convenient work. To do this, run following:
Expand Down
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"github.com/chzyer/readline"
"github.com/gocruncher/bar"
"github.com/gocruncher/jenkins-job-ctl/cmd/jj"
"github.com/gocruncher/jenkins-job-cli/cmd/jj"
"github.com/spf13/cobra"
"github.com/ttacon/chalk"
"net/url"
Expand Down
2 changes: 1 addition & 1 deletion cmd/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"fmt"
"github.com/gocruncher/jenkins-job-ctl/cmd/jj"
"github.com/gocruncher/jenkins-job-cli/cmd/jj"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/use.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"fmt"
"github.com/gocruncher/jenkins-job-ctl/cmd/jj"
"github.com/gocruncher/jenkins-job-cli/cmd/jj"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/gocruncher/jenkins-job-ctl
module github.com/gocruncher/jenkins-job-cli

go 1.15

Expand Down
2 changes: 1 addition & 1 deletion gobuild.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -eux
export GOPATH="$(pwd)/.gobuild"
SRCDIR="${GOPATH}/src/github.com/gocruncher/jenkins-job-ctl"
SRCDIR="${GOPATH}/src/github.com/gocruncher/jenkins-job-cli"

[ -d ${GOPATH} ] && rm -rf ${GOPATH}
mkdir -p ${GOPATH}/{src,pkg,bin}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/gocruncher/jenkins-job-ctl/cmd"
"github.com/gocruncher/jenkins-job-cli/cmd"
)

func main() {
Expand Down

0 comments on commit 864cf73

Please sign in to comment.