From: Yolanda Robla Date: Tue, 2 Jul 2019 09:34:39 +0000 (+0200) Subject: Change bin name from kni-edge-installer to knictl X-Git-Tag: akraino_r2~67 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=2433e3ee6f7b6a6263fafbe616165dd5e2434e12;p=kni%2Finstaller.git Change bin name from kni-edge-installer to knictl To avoid giving a false impression of our tooling being another installer, rename it from kni-edge-installer to knictl. Signed-off-by: Yolanda Robla Change-Id: I81be6fdbf08d91665529f30f623fba595a70d2a6 --- diff --git a/Makefile b/Makefile index 8ea3f09..6004904 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ GOPATH=$(shell pwd)/vendor:$(shell pwd):"${HOME}/go" GOBIN=$(shell pwd)/bin GOFILES=$(wildcard *.go) -GONAME="kni-edge-installer" +GONAME="knictl" BUILDDIR = $(shell pwd)/build BINDIR = $(shell pwd)/bin @@ -43,7 +43,7 @@ binary: @./bin/$(GONAME) binary --bin_path ${BINDIR} --installer_repository ${INSTALLER_GIT_REPO} --installer_tag ${INSTALLER_GIT_TAG} build: - @echo "Building kni-edge-installer with $(GOPATH) to ./bin" + @echo "Building knictl with $(GOPATH) to ./bin" @GOPATH=$(GOPATH) GOBIN=$(GOBIN) go build -o bin/$(GONAME) $(GOFILES) clean: diff --git a/README.md b/README.md index 2425413..d59ca2d 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,11 @@ Software: gcc,git,go ## How to build -First the `kni-edge-installer` binary needs to be produced. For that you just execute make with the following syntax: +First the `knictl` binary needs to be produced. For that you just execute make with the following syntax: make build -This will produce the `kni-edge-installer` binary that can be used to deploy a site. +This will produce the `knictl` binary that can be used to deploy a site. ## How to deploy diff --git a/cmd/root.go b/cmd/root.go index 6020dfa..b5a9f08 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -25,7 +25,7 @@ var cfgFile string // rootCmd represents the base command when called without any subcommands var rootCmd = &cobra.Command{ - Use: "kni-edge-installer", + Use: "knictl", Short: "This app will execute deployment and updates of KNI edge clusters", Long: `Given a set of declarative configurations, the following application will perform deployment of Kubernetes clusters based on it.`, @@ -42,5 +42,3 @@ func Execute() { func init() { } - -