diff --git a/.circleci/config.yml b/.circleci/config.yml index df7655f..e46b64d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: docker: - image: circleci/golang:1.10 - working_directory: /go/src/github.com/warrensbox/terragrunt-switcher + working_directory: /go/src/github.com/warrensbox/tgswitch steps: - checkout @@ -24,7 +24,7 @@ jobs: docker: - image: circleci/golang:1.11 - working_directory: /go/src/github.com/warrensbox/terragrunt-switcher + working_directory: /go/src/github.com/warrensbox/tgswitch steps: - checkout diff --git a/.goreleaser.yml b/.goreleaser.yml index 2965a0a..2c76fdd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,7 +4,7 @@ builds: - ldflags: - -X main.version={{.Env.RELEASE_VERSION}} -X main.CLIENT_ID={{.Env.CLIENT_ID}} -X main.CLIENT_SECRET={{.Env.CLIENT_SECRET}} - main: main.go - binary: tgswitch + binary: terraform-switcher goos: - windows - darwin @@ -22,7 +22,7 @@ changelog: brew: # Name of the recipe # Default to project name - name: terragrunt-switcher + name: tgswitch # Reporitory to push the tap to. github: @@ -49,7 +49,7 @@ brew: # Your app's homepage. # Default is empty. - homepage: "https://warrensbox.github.io/terragrunt-switcher" + homepage: "https://warrensbox.github.io/tgswitch" # Your app's description. # Default is empty. @@ -68,19 +68,19 @@ brew: # So you can `brew test` your formula. # Default is empty. test: | - system "#{bin}/terragrunt-switcher --version" + system "#{bin}/tgswitch --version" # Custom install script for brew. # Default is 'bin.install "program"'. install: | - bin.install "terragrunt-switcher" + bin.install "tgswitch" # .goreleaser.yml release: # Repo in which the release will be created. # Default is extracted from the origin remote URL. github: owner: warrensbox - name: terragrunt-switcher + name: tgswitch # If set to true, will not auto-publish the release. # Default is false. diff --git a/Gopkg.toml b/Gopkg.toml index 4d2a18c..71745dd 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -30,7 +30,7 @@ version = "0.3.0" [[constraint]] - name = "github.com/warrensbox/terragrunt-switcher" + name = "github.com/warrensbox/tgswitch" version = "0.4.552" [prune] diff --git a/Makefile b/Makefile index 3987a39..9cff948 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ EXE := tgswitch -PKG := github.com/warrensbox/terragrunt-switcher -VER := $(shell git ls-remote --tags git://github.com/warrensbox/terragrunt-switcher | awk '{print $$2}'| awk -F"/" '{print $$3}' | sort -n -t. -k1,1 -k2,2 -k3,3 | tail -n 1) +PKG := github.com/warrensbox/tgswitch +VER := $(shell git ls-remote --tags git://github.com/warrensbox/tgswitch | awk '{print $$2}'| awk -F"/" '{print $$3}' | sort -n -t. -k1,1 -k2,2 -k3,3 | tail -n 1) PATH := build:$(PATH) GOOS ?= $(shell go env GOOS) GOARCH ?= $(shell go env GOARCH) diff --git a/README.md b/README.md index 8980e1c..5b3cf2d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -[![Build Status](https://travis-ci.org/warrensbox/terragrunt-switcher.svg?branch=master)](https://travis-ci.org/warrensbox/terragrunt-switcher) -[![Go Report Card](https://goreportcard.com/badge/github.com/warrensbox/terragrunt-switcher)](https://goreportcard.com/report/github.com/warrensbox/terragrunt-switcher) -[![CircleCI](https://circleci.com/gh/warrensbox/terragrunt-switcher/tree/master.svg?style=shield&circle-token=d74b0de145c45b1d0da97f817363c77350e1a121)](https://circleci.com/gh/warrensbox/terragrunt-switcher) +[![Build Status](https://travis-ci.org/warrensbox/tgswitch.svg?branch=master)](https://travis-ci.org/warrensbox/tgswitch) +[![Go Report Card](https://goreportcard.com/badge/github.com/warrensbox/tgswitch)](https://goreportcard.com/report/github.com/warrensbox/tgswitch) +[![CircleCI](https://circleci.com/gh/warrensbox/tgswitch/tree/master.svg?style=shield&circle-token=d74b0de145c45b1d0da97f817363c77350e1a121)](https://circleci.com/gh/warrensbox/tgswitch) # Terragrunt Switcher @@ -13,7 +13,7 @@ The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terragrunt. -See installation guide here: [tgswitch installation](https://warrensbox.github.io/terragrunt-switcher/) +See installation guide here: [tgswitch installation](https://warrensbox.github.io/tgswitch/) ## Installation @@ -33,12 +33,12 @@ brew install warrensbox/tap/tgswitch Installation for other linux operation systems. ```sh -curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release/install.sh | bash +curl -L https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh | bash ``` ### Install from source -Alternatively, you can install the binary from source [here](https://github.com/warrensbox/terragrunt-switcher/releases) +Alternatively, you can install the binary from source [here](https://github.com/warrensbox/tgswitch/releases) ## How to use: ### Use dropdown menu to select version @@ -59,9 +59,9 @@ The most recently selected versions are presented at the top of the dropdown. ## Additional Info -See how to *upgrade*, *uninstall*, *troubleshoot* here:[More info](https://warrensbox.github.io/terragrunt-switcher/additional) +See how to *upgrade*, *uninstall*, *troubleshoot* here:[More info](https://warrensbox.github.io/tgswitch/additional) ## Issues -Please open *issues* here: [New Issue](https://github.com/warrensbox/terragrunt-switcher/issues) +Please open *issues* here: [New Issue](https://github.com/warrensbox/tgswitch/issues) diff --git a/docs/_config.yml b/docs/_config.yml index 30cc300..a315a77 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,6 +1,6 @@ theme: jekyll-theme-minimal #github: [metadata] -repository: warrensbox/terragrunt-switcher +repository: warrensbox/tgswitch logo: /assets/img/logo.png title: tgswitch diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 1a947d4..2c8753c 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -39,16 +39,16 @@

{{ site.description | default: site.github.project_tagline }}

- Travis - Go Report + Travis + Go Report
{% if site.show_downloads %} {% endif %} diff --git a/docs/_site/additional.html b/docs/_site/additional.html index c7086bf..32b86d9 100644 --- a/docs/_site/additional.html +++ b/docs/_site/additional.html @@ -23,7 +23,7 @@ {"description":"Manage terragrunt versions - the tgshift command line tool lets you switch between different versions of terragrunt","@type":"WebPage","url":"/additional.html","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"/assets/img/logo.png"}},"headline":"tgswitch","@context":"http://schema.org"} - + @@ -50,16 +50,16 @@

Manage terragrunt versions - the tgshift command line tool lets you switch between different versions of terragrunt

- Travis - Go Report + Travis + Go Report
@@ -78,7 +78,7 @@

Linux

Rerun:

-
curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release/install.sh | bash
+
curl -L https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh | bash
 

Uninstall:

@@ -111,12 +111,12 @@

Troubleshoot:

Back to main

-

This project is maintained by warrensbox

+

This project is maintained by warrensbox

- +
diff --git a/docs/_site/additional.md b/docs/_site/additional.md index 0f239ee..d177d9c 100644 --- a/docs/_site/additional.md +++ b/docs/_site/additional.md @@ -13,7 +13,7 @@ brew upgrade warrensbox/tap/tgswitch Rerun: ```sh -curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release/install.sh | bash +curl -L https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh | bash ``` ## Uninstall: diff --git a/docs/_site/docs/additional.html b/docs/_site/docs/additional.html index c8d58ed..5a5a302 100644 --- a/docs/_site/docs/additional.html +++ b/docs/_site/docs/additional.html @@ -23,7 +23,7 @@ {"description":"Manage terragrunt versions - the tgshift command line tool lets you switch between different versions of terragrunt","@type":"WebPage","url":"/docs/additional.html","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"/assets/img/logo.png"}},"headline":"tgswitch","@context":"http://schema.org"} - + @@ -50,16 +50,16 @@

Manage terragrunt versions - the tgshift command line tool lets you switch between different versions of terragrunt

- Travis - Go Report + Travis + Go Report
@@ -111,12 +111,12 @@

Troubleshoot:

Back to main

-

This project is maintained by warrensbox

+

This project is maintained by warrensbox

diff --git a/docs/_site/docs/index.html b/docs/_site/docs/index.html index f1ad19a..c8324bc 100644 --- a/docs/_site/docs/index.html +++ b/docs/_site/docs/index.html @@ -23,7 +23,7 @@ {"description":"Manage terragrunt versions - the tgshift command line tool lets you switch between different versions of terragrunt","@type":"WebPage","url":"/docs/","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"/assets/img/logo.png"}},"headline":"Terraform Switcher","@context":"http://schema.org"} - + @@ -50,16 +50,16 @@

Manage terragrunt versions - the tgshift command line tool lets you switch between different versions of terragrunt

- Travis - Go Report + Travis + Go Report
@@ -131,12 +131,12 @@

Issues

Additional Info

-

This project is maintained by warrensbox

+

This project is maintained by warrensbox

diff --git a/docs/_site/index.html b/docs/_site/index.html index e7a495f..520e20b 100644 --- a/docs/_site/index.html +++ b/docs/_site/index.html @@ -23,7 +23,7 @@ {"name":"tgswitch","description":"Manage terragrunt versions - the tgshift command line tool lets you switch between different versions of terragrunt","@type":"WebSite","url":"/","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"/assets/img/logo.png"}},"headline":"Terragrunt Switcher","@context":"http://schema.org"} - + @@ -50,16 +50,16 @@

Manage terragrunt versions - the tgshift command line tool lets you switch between different versions of terragrunt

- Travis - Go Report + Travis + Go Report
@@ -89,12 +89,12 @@

Linux

Installation for Linux operation systems.

-
curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release/install.sh | bash
+
curl -L https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh | bash
 

Install from source

-

Alternatively, you can install the binary from the source here

+

Alternatively, you can install the binary from the source here


@@ -123,7 +123,7 @@

Supply version on command line

Issues

-

Please open issues here: New Issue

+

Please open issues here: New Issue


@@ -131,12 +131,12 @@

Issues

Additional Info

-

This project is maintained by warrensbox

+

This project is maintained by warrensbox

- +
diff --git a/docs/_site/index.md b/docs/_site/index.md index 3467213..c915dd0 100644 --- a/docs/_site/index.md +++ b/docs/_site/index.md @@ -25,12 +25,12 @@ brew install warrensbox/tap/tgswitch Installation for Linux operation systems. ```sh -curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release/install.sh | bash +curl -L https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh | bash ``` ### Install from source -Alternatively, you can install the binary from the source [here](https://github.com/warrensbox/terragrunt-switcher/releases) +Alternatively, you can install the binary from the source [here](https://github.com/warrensbox/tgswitch/releases)
@@ -55,7 +55,7 @@ The most recently selected versions are presented at the top of the dropdown. ## Issues -Please open *issues* here: [New Issue](https://github.com/warrensbox/terragrunt-switcher/issues){:target="_blank"} +Please open *issues* here: [New Issue](https://github.com/warrensbox/tgswitch/issues){:target="_blank"}
diff --git a/docs/additional.md b/docs/additional.md index 0f239ee..d177d9c 100644 --- a/docs/additional.md +++ b/docs/additional.md @@ -13,7 +13,7 @@ brew upgrade warrensbox/tap/tgswitch Rerun: ```sh -curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release/install.sh | bash +curl -L https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh | bash ``` ## Uninstall: diff --git a/docs/index.md b/docs/index.md index 3467213..c915dd0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,12 +25,12 @@ brew install warrensbox/tap/tgswitch Installation for Linux operation systems. ```sh -curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release/install.sh | bash +curl -L https://raw.githubusercontent.com/warrensbox/tgswitch/release/install.sh | bash ``` ### Install from source -Alternatively, you can install the binary from the source [here](https://github.com/warrensbox/terragrunt-switcher/releases) +Alternatively, you can install the binary from the source [here](https://github.com/warrensbox/tgswitch/releases)
@@ -55,7 +55,7 @@ The most recently selected versions are presented at the top of the dropdown. ## Issues -Please open *issues* here: [New Issue](https://github.com/warrensbox/terragrunt-switcher/issues){:target="_blank"} +Please open *issues* here: [New Issue](https://github.com/warrensbox/tgswitch/issues){:target="_blank"}
diff --git a/install.sh b/install.sh index 3dc5820..05371f7 100644 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ Usage: $this [-b] bindir [-d] [tag] -b sets bindir or installation directory, Defaults to ./bin -d turns on debug logging [tag] is a tag from - https://github.com/warrensbox/terragrunt-switcher/releases + https://github.com/warrensbox/tgswitch/releases If tag is missing, then the latest will be used. EOF @@ -334,9 +334,9 @@ End of functions from https://github.com/client9/shlib ------------------------------------------------------------------------ EOF -PROJECT_NAME="terragrunt-switcher" +PROJECT_NAME="tgswitch" OWNER=warrensbox -REPO="terragrunt-switcher" +REPO="tgswitch" BINARY=tgswitch FORMAT=tar.gz OS=$(uname_os) diff --git a/lib/command_test.go b/lib/command_test.go index 53078fa..b41440a 100644 --- a/lib/command_test.go +++ b/lib/command_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/warrensbox/terragrunt-switcher/lib" + "github.com/warrensbox/tgswitch/lib" ) // TestNewCommand : pass value and check if returned value is a pointer diff --git a/lib/download_test.go b/lib/download_test.go index a5faa68..58cc223 100644 --- a/lib/download_test.go +++ b/lib/download_test.go @@ -9,7 +9,7 @@ import ( "runtime" "testing" - lib "github.com/warrensbox/terragrunt-switcher/lib" + lib "github.com/warrensbox/tgswitch/lib" ) // TestDownloadFromURL_FileNameMatch : Check expected filename exist when downloaded diff --git a/lib/files_test.go b/lib/files_test.go index 18395e2..439f788 100644 --- a/lib/files_test.go +++ b/lib/files_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/warrensbox/terragrunt-switcher/lib" + "github.com/warrensbox/tgswitch/lib" ) // TestRenameFile : Create a file, check filename exist, diff --git a/lib/install.go b/lib/install.go index d61da2e..990cea7 100644 --- a/lib/install.go +++ b/lib/install.go @@ -8,7 +8,7 @@ import ( "regexp" "runtime" - "github.com/warrensbox/terragrunt-switcher/modal" + "github.com/warrensbox/tgswitch/modal" ) const ( diff --git a/lib/list_versions.go b/lib/list_versions.go index ccfc6e1..5e950f1 100644 --- a/lib/list_versions.go +++ b/lib/list_versions.go @@ -18,7 +18,7 @@ import ( "sync" "time" - "github.com/warrensbox/terragrunt-switcher/modal" + "github.com/warrensbox/tgswitch/modal" ) type AppVersionList struct { @@ -200,7 +200,7 @@ func getAppBody(gruntURLPage string, ch chan<- *[]modal.Repo) { res, getErr := gswitch.Do(req) if getErr != nil { - log.Fatal(getErr) + log.Fatal("Unable to make request. Try again later.") } body, readErr := ioutil.ReadAll(res.Body) diff --git a/lib/list_versions_test.go b/lib/list_versions_test.go index 40b21b0..9647642 100644 --- a/lib/list_versions_test.go +++ b/lib/list_versions_test.go @@ -4,7 +4,7 @@ import ( "log" "testing" - "github.com/warrensbox/terragrunt-switcher/lib" + "github.com/warrensbox/tgswitch/lib" ) const ( diff --git a/lib/symlink_test.go b/lib/symlink_test.go index 6dfc066..97a2ea1 100644 --- a/lib/symlink_test.go +++ b/lib/symlink_test.go @@ -6,7 +6,7 @@ import ( "os/user" "testing" - "github.com/warrensbox/terragrunt-switcher/lib" + "github.com/warrensbox/tgswitch/lib" ) // TestCreateSymlink : check if symlink exist-remove if exist, diff --git a/main.go b/main.go index c3d8a29..7cdbd3b 100644 --- a/main.go +++ b/main.go @@ -23,8 +23,8 @@ import ( "github.com/manifoldco/promptui" "github.com/pborman/getopt" - lib "github.com/warrensbox/terragrunt-switcher/lib" - "github.com/warrensbox/terragrunt-switcher/modal" + lib "github.com/warrensbox/tgswitch/lib" + "github.com/warrensbox/tgswitch/modal" ) const ( diff --git a/version b/version index 23e8085..1dd1196 100644 --- a/version +++ b/version @@ -1 +1 @@ -RELEASE_VERSION=0.2 \ No newline at end of file +RELEASE_VERSION=0.3 \ No newline at end of file