From e10e27854a4ba4298a7aba08e02b8e9e901c6831 Mon Sep 17 00:00:00 2001 From: Warren Veerasingam Date: Fri, 31 Aug 2018 11:13:50 -0500 Subject: [PATCH] added tgswitch --- .circleci/config.yml | 4 ++-- .gitignore | 2 +- .goreleaser.yml | 12 +++++----- Makefile | 2 +- README.md | 20 ++++++++-------- docs/_config.yml | 2 +- docs/_layouts/default.html | 12 +++++----- docs/_site/additional.html | 20 ++++++++-------- docs/_site/additional.md | 8 +++---- docs/_site/docs/additional.html | 20 ++++++++-------- docs/_site/docs/additional.md | 8 +++---- docs/_site/docs/index.html | 28 +++++++++++----------- docs/_site/docs/index.md | 16 ++++++------- docs/_site/index.html | 28 +++++++++++----------- docs/_site/index.md | 16 ++++++------- docs/additional.md | 8 +++---- docs/docs/_layouts/default.html | 12 +++++----- docs/docs/_site/additional.html | 36 ++++++++++++++-------------- docs/docs/_site/additional.md | 8 +++---- docs/docs/_site/index.html | 42 ++++++++++++++++----------------- docs/docs/_site/index.md | 16 ++++++------- docs/docs/additional.md | 8 +++---- docs/docs/index.md | 16 ++++++------- docs/index.md | 16 ++++++------- install.sh | 6 ++--- lib/symlink_test.go | 12 +++++----- main.go | 2 +- 27 files changed, 190 insertions(+), 190 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 79b2500..731c273 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,11 +15,11 @@ jobs: - run: go vet -tests=false ./... - run: go test -v ./... - run: mkdir -p build - - run: go build -v -o build/tgshift + - run: go build -v -o build/tgswitch - persist_to_workspace: root: build - paths: tgshift + paths: tgswitch test-ubuntu: docker: diff --git a/.gitignore b/.gitignore index 92a37fc..3a8bfe8 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,7 @@ src main build dist -tgshift +tgswitch .DS_Store diff --git a/.goreleaser.yml b/.goreleaser.yml index b0faed8..d9c8814 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,7 +4,7 @@ builds: - ldflags: - -s -w -X "main.version={{.Env.RELEASE_VERSION}}" - main: main.go - binary: tgshift + binary: tgswitch goos: - windows - darwin @@ -32,7 +32,7 @@ archive: brew: # Name of the recipe # Default to project name - name: tgshift + name: tgswitch # Reporitory to push the tap to. github: @@ -55,7 +55,7 @@ brew: # Caveats for the user of your binary. # Default is empty. - caveats: "Type 'tgshift' on your command line and choose the terragrunt version that you want from the dropdown. This command currently only works on MacOs and Linux" + caveats: "Type 'tgswitch' on your command line and choose the terragrunt version that you want from the dropdown. This command currently only works on MacOs and Linux" # Your app's homepage. # Default is empty. @@ -63,7 +63,7 @@ brew: # Your app's description. # Default is empty. - description: "The tgshift command lets you switch between terragrunt versions." + description: "The tgswitch command lets you switch between terragrunt versions." # Setting this will prevent goreleaser to actually try to commit the updated # formula - instead, the formula file will be stored on the dist folder only, @@ -78,10 +78,10 @@ brew: # So you can `brew test` your formula. # Default is empty. test: | - system "#{bin}/tgshift --version" + system "#{bin}/tgswitch --version" # Custom install script for brew. # Default is 'bin.install "program"'. install: | - bin.install "tgshift" + bin.install "tgswitch" diff --git a/Makefile b/Makefile index cc8dc97..d4d32af 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -EXE := tgshift +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) PATH := build:$(PATH) diff --git a/README.md b/README.md index e515b5f..8980e1c 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,20 @@ # Terragrunt Switcher -drawing +drawing -The `tgshift` command line tool lets you switch between different versions of [terragrunt](https://www.terragrunt.io/). -If you do not have a particular version of terragrunt installed, `tgshift` will download the version you desire. +The `tgswitch` command line tool lets you switch between different versions of [terragrunt](https://www.terragrunt.io/). +If you do not have a particular version of terragrunt installed, `tgswitch` will download the version you desire. 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: [tgshift installation](https://warrensbox.github.io/terragrunt-switcher/) +See installation guide here: [tgswitch installation](https://warrensbox.github.io/terragrunt-switcher/) ## Installation -`tgshift` is available for MacOS and Linux based operating systems. +`tgswitch` is available for MacOS and Linux based operating systems. ### Homebrew @@ -25,7 +25,7 @@ Installation for MacOS is the easiest with Homebrew. [If you do not have homebre ```ruby -brew install warrensbox/tap/tgshift +brew install warrensbox/tap/tgswitch ``` ### Linux @@ -42,19 +42,19 @@ Alternatively, you can install the binary from source [here](https://github.com/ ## How to use: ### Use dropdown menu to select version -drawing +drawing -1. You can switch between different versions of terragrunt by typing the command `tgshift` on your terminal. +1. You can switch between different versions of terragrunt by typing the command `tgswitch` on your terminal. 2. Select the version of terragrunt you require by using the up and down arrow. 3. Hit **Enter** to select the desired version. The most recently selected versions are presented at the top of the dropdown. ### Supply version on command line -drawing +drawing 1. You can also supply the desired version as an argument on the command line. -2. For example, `tgshift 0.10.7` for version 0.10.7 of terragrunt. +2. For example, `tgswitch 0.10.7` for version 0.10.7 of terragrunt. 3. Hit **Enter** to switch version. ## Additional Info diff --git a/docs/_config.yml b/docs/_config.yml index c262cbe..30cc300 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -2,7 +2,7 @@ theme: jekyll-theme-minimal #github: [metadata] repository: warrensbox/terragrunt-switcher logo: /assets/img/logo.png -title: tgshift +title: tgswitch show_downloads: true diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index d280835..8d3cc95 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -4,12 +4,12 @@ - + - - - + + + {% seo %} @@ -31,10 +31,10 @@
- +

- Logo + Logo

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

diff --git a/docs/_site/additional.html b/docs/_site/additional.html index 67e25c6..794759c 100644 --- a/docs/_site/additional.html +++ b/docs/_site/additional.html @@ -4,12 +4,12 @@ - + - - - + + + gswap | Manage terragrunt versions - the gswap command line tool lets you switch between different versions of terragrunt @@ -44,10 +44,10 @@
- +

- Logo + Logo

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

@@ -74,7 +74,7 @@

Upgrade:

Homebrew

-
brew upgrade warrensbox/tap/tgshift
+
brew upgrade warrensbox/tap/tgswitch
 

Linux

@@ -87,13 +87,13 @@

Uninstall:

Homebrew

-
brew uninstall warrensbox/tap/tgshift
+
brew uninstall warrensbox/tap/tgswitch
 

Linux

Rerun:

-
rm /usr/local/bin/tgshift
+
rm /usr/local/bin/tgswitch
 

Troubleshoot:

@@ -107,7 +107,7 @@

Troubleshoot:

"Unable to create symlink. You must have SUDO privileges"
 
-

You probably need to have sudo privileges to install tgshift.

+

You probably need to have sudo privileges to install tgswitch.

Back to top
Back to main

diff --git a/docs/_site/additional.md b/docs/_site/additional.md index eee5c6e..0f239ee 100644 --- a/docs/_site/additional.md +++ b/docs/_site/additional.md @@ -6,7 +6,7 @@ ### Homebrew ```ruby -brew upgrade warrensbox/tap/tgshift +brew upgrade warrensbox/tap/tgswitch ``` ### Linux @@ -21,14 +21,14 @@ curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release ### Homebrew ```ruby -brew uninstall warrensbox/tap/tgshift +brew uninstall warrensbox/tap/tgswitch ``` ### Linux Rerun: ```sh -rm /usr/local/bin/tgshift +rm /usr/local/bin/tgswitch ``` ## Troubleshoot: @@ -45,7 +45,7 @@ install: can't change permissions of /usr/local/bin: Operation not permitted ```ruby "Unable to create symlink. You must have SUDO privileges" ``` -You probably need to have **sudo** privileges to install *tgshift*. +You probably need to have **sudo** privileges to install *tgswitch*. [Back to top](#upgrade) [Back to main](index) \ No newline at end of file diff --git a/docs/_site/docs/additional.html b/docs/_site/docs/additional.html index 29baaac..158d3ad 100644 --- a/docs/_site/docs/additional.html +++ b/docs/_site/docs/additional.html @@ -4,12 +4,12 @@ - + - - - + + + gswap | Manage terragrunt versions - the gswap command line tool lets you switch between different versions of terragrunt @@ -44,10 +44,10 @@
- +

- Logo + Logo

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

@@ -74,7 +74,7 @@

Upgrade:

Homebrew

-
brew upgrade warrensbox/tap/tgshift
+
brew upgrade warrensbox/tap/tgswitch
 

Linux

@@ -87,13 +87,13 @@

Uninstall:

Homebrew

-
brew uninstall warrensbox/tap/tgshift
+
brew uninstall warrensbox/tap/tgswitch
 

Linux

Rerun:

-
rm /usr/local/bin/tgshift
+
rm /usr/local/bin/tgswitch
 

Troubleshoot:

@@ -107,7 +107,7 @@

Troubleshoot:

"Unable to create symlink. You must have SUDO privileges"
 
-

You probably need to have sudo privileges to install tgshift.

+

You probably need to have sudo privileges to install tgswitch.

Back to top
Back to main

diff --git a/docs/_site/docs/additional.md b/docs/_site/docs/additional.md index 126e469..aea2b15 100644 --- a/docs/_site/docs/additional.md +++ b/docs/_site/docs/additional.md @@ -6,7 +6,7 @@ ### Homebrew ```ruby -brew upgrade warrensbox/tap/tgshift +brew upgrade warrensbox/tap/tgswitch ``` ### Linux @@ -21,14 +21,14 @@ curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/ ### Homebrew ```ruby -brew uninstall warrensbox/tap/tgshift +brew uninstall warrensbox/tap/tgswitch ``` ### Linux Rerun: ```sh -rm /usr/local/bin/tgshift +rm /usr/local/bin/tgswitch ``` ## Troubleshoot: @@ -45,7 +45,7 @@ install: can't change permissions of /usr/local/bin: Operation not permitted ```ruby "Unable to create symlink. You must have SUDO privileges" ``` -You probably need to have **sudo** privileges to install *tgshift*. +You probably need to have **sudo** privileges to install *tgswitch*. [Back to top](#upgrade) [Back to main](index) \ No newline at end of file diff --git a/docs/_site/docs/index.html b/docs/_site/docs/index.html index 0dc7c43..f8eca09 100644 --- a/docs/_site/docs/index.html +++ b/docs/_site/docs/index.html @@ -4,12 +4,12 @@ - + - - - + + + Terraform Switcher | gswap @@ -44,10 +44,10 @@
- +

- Logo + Logo

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

@@ -69,8 +69,8 @@

Terraform Switcher

-

The tgshift command line tool lets you switch between different versions of terraform. -If you do not have a particular version of terraform installed, tgshift will download the version you desire. +

The tgswitch command line tool lets you switch between different versions of terraform. +If you do not have a particular version of terraform installed, tgswitch will download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terraform.

@@ -78,13 +78,13 @@

Terraform Switcher

Installation

-

tgshift is available for MacOS and Linux based operating systems.

+

tgswitch is available for MacOS and Linux based operating systems.

Homebrew

Installation for MacOS is the easiest with Homebrew. If you do not have homebrew installed, click here.

-
brew install warrensbox/tap/tgshift
+
brew install warrensbox/tap/tgswitch
 

Linux

@@ -102,10 +102,10 @@

Install from source

How to use:

Use dropdown menu to select version

-

drawing

+

drawing

    -
  1. You can switch between different versions of terraform by typing the command tgshift on your terminal.
  2. +
  3. You can switch between different versions of terraform by typing the command tgswitch on your terminal.
  4. Select the version of terraform you require by using the up and down arrow.
  5. Hit Enter to select the desired version.
@@ -113,11 +113,11 @@

Use dropdown menu to select version

The most recently selected versions are presented at the top of the dropdown.

Supply version on command line

-

drawing

+

drawing

  1. You can also supply the desired version as an argument on the command line.
  2. -
  3. For example, tgshift 0.10.5 for version 0.10.5 of terraform.
  4. +
  5. For example, tgswitch 0.10.5 for version 0.10.5 of terraform.
  6. Hit Enter to switch.
diff --git a/docs/_site/docs/index.md b/docs/_site/docs/index.md index ba65d0f..c6421e4 100644 --- a/docs/_site/docs/index.md +++ b/docs/_site/docs/index.md @@ -1,7 +1,7 @@ # Terraform Switcher -The `tgshift` command line tool lets you switch between different versions of [terraform](https://www.terraform.io/){:target="_blank"}. -If you do not have a particular version of terraform installed, `tgshift` will download the version you desire. +The `tgswitch` command line tool lets you switch between different versions of [terraform](https://www.terraform.io/){:target="_blank"}. +If you do not have a particular version of terraform installed, `tgswitch` will download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terraform. @@ -9,7 +9,7 @@ Once installed, simply select the version you require from the dropdown and star ## Installation -`tgshift` is available for MacOS and Linux based operating systems. +`tgswitch` is available for MacOS and Linux based operating systems. ### Homebrew @@ -17,7 +17,7 @@ Installation for MacOS is the easiest with Homebrew. [If you do not have homebre ```ruby -brew install warrensbox/tap/tgshift +brew install warrensbox/tap/tgswitch ``` ### Linux @@ -36,19 +36,19 @@ Alternatively, you can install the binary from the source [here](https://github. ## How to use: ### Use dropdown menu to select version -drawing +drawing -1. You can switch between different versions of terraform by typing the command `tgshift` on your terminal. +1. You can switch between different versions of terraform by typing the command `tgswitch` on your terminal. 2. Select the version of terraform you require by using the up and down arrow. 3. Hit **Enter** to select the desired version. The most recently selected versions are presented at the top of the dropdown. ### Supply version on command line -drawing +drawing 1. You can also supply the desired version as an argument on the command line. -2. For example, `tgshift 0.10.5` for version 0.10.5 of terraform. +2. For example, `tgswitch 0.10.5` for version 0.10.5 of terraform. 3. Hit **Enter** to switch.
diff --git a/docs/_site/index.html b/docs/_site/index.html index 9a761ea..8f8104f 100644 --- a/docs/_site/index.html +++ b/docs/_site/index.html @@ -4,12 +4,12 @@ - + - - - + + + Terragrunt Switcher | gswap @@ -44,10 +44,10 @@
- +

- Logo + Logo

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

@@ -69,8 +69,8 @@

Terragrunt Switcher

-

The tgshift command line tool lets you switch between different versions of terragrunt. -If you do not have a particular version of terragrunt installed, tgshift will download the version you desire. +

The tgswitch command line tool lets you switch between different versions of terragrunt. +If you do not have a particular version of terragrunt installed, tgswitch will download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terragrunt.

@@ -78,13 +78,13 @@

Terragrunt Switcher

Installation

-

tgshift is available for MacOS and Linux based operating systems.

+

tgswitch is available for MacOS and Linux based operating systems.

Homebrew

Installation for MacOS is the easiest with Homebrew. If you do not have homebrew installed, click here.

-
brew install warrensbox/tap/tgshift
+
brew install warrensbox/tap/tgswitch
 

Linux

@@ -102,10 +102,10 @@

Install from source

How to use:

Use dropdown menu to select version

-

drawing

+

drawing

    -
  1. You can switch between different versions of terragrunt by typing the command tgshift on your terminal.
  2. +
  3. You can switch between different versions of terragrunt by typing the command tgswitch on your terminal.
  4. Select the version of terragrunt you require by using the up and down arrow.
  5. Hit Enter to select the desired version.
@@ -113,11 +113,11 @@

Use dropdown menu to select version

The most recently selected versions are presented at the top of the dropdown.

Supply version on command line

-

drawing

+

drawing

  1. You can also supply the desired version as an argument on the command line.
  2. -
  3. For example, tgshift 0.10.5 for version 0.10.5 of terragrunt.
  4. +
  5. For example, tgswitch 0.10.5 for version 0.10.5 of terragrunt.
  6. Hit Enter to switch.
diff --git a/docs/_site/index.md b/docs/_site/index.md index f381ca8..3467213 100644 --- a/docs/_site/index.md +++ b/docs/_site/index.md @@ -1,7 +1,7 @@ # Terragrunt Switcher -The `tgshift` command line tool lets you switch between different versions of [terragrunt](https://www.terragrunt.io/){:target="_blank"}. -If you do not have a particular version of terragrunt installed, `tgshift` will download the version you desire. +The `tgswitch` command line tool lets you switch between different versions of [terragrunt](https://www.terragrunt.io/){:target="_blank"}. +If you do not have a particular version of terragrunt installed, `tgswitch` will download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terragrunt. @@ -9,7 +9,7 @@ Once installed, simply select the version you require from the dropdown and star ## Installation -`tgshift` is available for MacOS and Linux based operating systems. +`tgswitch` is available for MacOS and Linux based operating systems. ### Homebrew @@ -17,7 +17,7 @@ Installation for MacOS is the easiest with Homebrew. [If you do not have homebre ```ruby -brew install warrensbox/tap/tgshift +brew install warrensbox/tap/tgswitch ``` ### Linux @@ -36,19 +36,19 @@ Alternatively, you can install the binary from the source [here](https://github. ## How to use: ### Use dropdown menu to select version -drawing +drawing -1. You can switch between different versions of terragrunt by typing the command `tgshift` on your terminal. +1. You can switch between different versions of terragrunt by typing the command `tgswitch` on your terminal. 2. Select the version of terragrunt you require by using the up and down arrow. 3. Hit **Enter** to select the desired version. The most recently selected versions are presented at the top of the dropdown. ### Supply version on command line -drawing +drawing 1. You can also supply the desired version as an argument on the command line. -2. For example, `tgshift 0.10.5` for version 0.10.5 of terragrunt. +2. For example, `tgswitch 0.10.5` for version 0.10.5 of terragrunt. 3. Hit **Enter** to switch.
diff --git a/docs/additional.md b/docs/additional.md index eee5c6e..0f239ee 100644 --- a/docs/additional.md +++ b/docs/additional.md @@ -6,7 +6,7 @@ ### Homebrew ```ruby -brew upgrade warrensbox/tap/tgshift +brew upgrade warrensbox/tap/tgswitch ``` ### Linux @@ -21,14 +21,14 @@ curl -L https://raw.githubusercontent.com/warrensbox/terragrunt-switcher/release ### Homebrew ```ruby -brew uninstall warrensbox/tap/tgshift +brew uninstall warrensbox/tap/tgswitch ``` ### Linux Rerun: ```sh -rm /usr/local/bin/tgshift +rm /usr/local/bin/tgswitch ``` ## Troubleshoot: @@ -45,7 +45,7 @@ install: can't change permissions of /usr/local/bin: Operation not permitted ```ruby "Unable to create symlink. You must have SUDO privileges" ``` -You probably need to have **sudo** privileges to install *tgshift*. +You probably need to have **sudo** privileges to install *tgswitch*. [Back to top](#upgrade) [Back to main](index) \ No newline at end of file diff --git a/docs/docs/_layouts/default.html b/docs/docs/_layouts/default.html index fe596af..17ebdf0 100644 --- a/docs/docs/_layouts/default.html +++ b/docs/docs/_layouts/default.html @@ -4,12 +4,12 @@ - + - - - + + + {% seo %} @@ -31,10 +31,10 @@
- +

- Logo + Logo

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

diff --git a/docs/docs/_site/additional.html b/docs/docs/_site/additional.html index fb68b7e..76b37c4 100644 --- a/docs/docs/_site/additional.html +++ b/docs/docs/_site/additional.html @@ -4,25 +4,25 @@ - + - - - + + + -tgshift | Manage terraform versions - the tgshift command line tool lets you switch between different versions of terraform +tgswitch | Manage terraform versions - the tgswitch command line tool lets you switch between different versions of terraform - + - - + + - + +{"description":"Manage terraform versions - the tgswitch command line tool lets you switch between different versions of terraform","@type":"WebPage","url":"http://localhost:4000/additional.html","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"http://localhost:4000/assets/img/logo.png"}},"headline":"tgswitch","@context":"http://schema.org"} @@ -43,14 +43,14 @@
- - + +

- Logo + Logo

-

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

+

Manage terraform versions - the tgswitch command line tool lets you switch between different versions of terraform

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

Upgrade:

Homebrew

-
brew upgrade warrensbox/tap/tgshift
+
brew upgrade warrensbox/tap/tgswitch
 

Linux

@@ -87,13 +87,13 @@

Uninstall:

Homebrew

-
brew uninstall warrensbox/tap/tgshift
+
brew uninstall warrensbox/tap/tgswitch
 

Linux

Rerun:

-
rm /usr/local/bin/tgshift
+
rm /usr/local/bin/tgswitch
 

Troubleshoot:

@@ -107,7 +107,7 @@

Troubleshoot:

"Unable to create symlink. You must have SUDO privileges"
 
-

You probably need to have sudo privileges to install tgshift.

+

You probably need to have sudo privileges to install tgswitch.

Back to top
Back to main

diff --git a/docs/docs/_site/additional.md b/docs/docs/_site/additional.md index 126e469..aea2b15 100644 --- a/docs/docs/_site/additional.md +++ b/docs/docs/_site/additional.md @@ -6,7 +6,7 @@ ### Homebrew ```ruby -brew upgrade warrensbox/tap/tgshift +brew upgrade warrensbox/tap/tgswitch ``` ### Linux @@ -21,14 +21,14 @@ curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/ ### Homebrew ```ruby -brew uninstall warrensbox/tap/tgshift +brew uninstall warrensbox/tap/tgswitch ``` ### Linux Rerun: ```sh -rm /usr/local/bin/tgshift +rm /usr/local/bin/tgswitch ``` ## Troubleshoot: @@ -45,7 +45,7 @@ install: can't change permissions of /usr/local/bin: Operation not permitted ```ruby "Unable to create symlink. You must have SUDO privileges" ``` -You probably need to have **sudo** privileges to install *tgshift*. +You probably need to have **sudo** privileges to install *tgswitch*. [Back to top](#upgrade) [Back to main](index) \ No newline at end of file diff --git a/docs/docs/_site/index.html b/docs/docs/_site/index.html index 86034e0..7e1f6c4 100644 --- a/docs/docs/_site/index.html +++ b/docs/docs/_site/index.html @@ -4,25 +4,25 @@ - + - - - + + + -Terraform Switcher | tgshift +Terraform Switcher | tgswitch - - + + - + +{"name":"tgswitch","description":"Manage terraform versions - the tgswitch command line tool lets you switch between different versions of terraform","@type":"WebSite","url":"http://localhost:4000/","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"http://localhost:4000/assets/img/logo.png"}},"headline":"Terraform Switcher","@context":"http://schema.org"} @@ -43,14 +43,14 @@
- - + +

- Logo + Logo

-

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

+

Manage terraform versions - the tgswitch command line tool lets you switch between different versions of terraform

Travis Go Report @@ -69,8 +69,8 @@

Terraform Switcher

-

The tgshift command line tool lets you switch between different versions of terraform. -If you do not have a particular version of terraform installed, tgshift will download the version you desire. +

The tgswitch command line tool lets you switch between different versions of terraform. +If you do not have a particular version of terraform installed, tgswitch will download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terraform.

@@ -78,13 +78,13 @@

Terraform Switcher

Installation

-

tgshift is available for MacOS and Linux based operating systems.

+

tgswitch is available for MacOS and Linux based operating systems.

Homebrew

Installation for MacOS is the easiest with Homebrew. If you do not have homebrew installed, click here.

-
brew install warrensbox/tap/tgshift
+
brew install warrensbox/tap/tgswitch
 

Linux

@@ -102,10 +102,10 @@

Install from source

How to use:

Use dropdown menu to select version

-

drawing

+

drawing

    -
  1. You can switch between different versions of terraform by typing the command tgshift on your terminal.
  2. +
  3. You can switch between different versions of terraform by typing the command tgswitch on your terminal.
  4. Select the version of terraform you require by using the up and down arrow.
  5. Hit Enter to select the desired version.
@@ -113,11 +113,11 @@

Use dropdown menu to select version

The most recently selected versions are presented at the top of the dropdown.

Supply version on command line

-

drawing

+

drawing

  1. You can also supply the desired version as an argument on the command line.
  2. -
  3. For example, tgshift 0.10.5 for version 0.10.5 of terraform.
  4. +
  5. For example, tgswitch 0.10.5 for version 0.10.5 of terraform.
  6. Hit Enter to switch.
diff --git a/docs/docs/_site/index.md b/docs/docs/_site/index.md index ba65d0f..c6421e4 100644 --- a/docs/docs/_site/index.md +++ b/docs/docs/_site/index.md @@ -1,7 +1,7 @@ # Terraform Switcher -The `tgshift` command line tool lets you switch between different versions of [terraform](https://www.terraform.io/){:target="_blank"}. -If you do not have a particular version of terraform installed, `tgshift` will download the version you desire. +The `tgswitch` command line tool lets you switch between different versions of [terraform](https://www.terraform.io/){:target="_blank"}. +If you do not have a particular version of terraform installed, `tgswitch` will download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terraform. @@ -9,7 +9,7 @@ Once installed, simply select the version you require from the dropdown and star ## Installation -`tgshift` is available for MacOS and Linux based operating systems. +`tgswitch` is available for MacOS and Linux based operating systems. ### Homebrew @@ -17,7 +17,7 @@ Installation for MacOS is the easiest with Homebrew. [If you do not have homebre ```ruby -brew install warrensbox/tap/tgshift +brew install warrensbox/tap/tgswitch ``` ### Linux @@ -36,19 +36,19 @@ Alternatively, you can install the binary from the source [here](https://github. ## How to use: ### Use dropdown menu to select version -drawing +drawing -1. You can switch between different versions of terraform by typing the command `tgshift` on your terminal. +1. You can switch between different versions of terraform by typing the command `tgswitch` on your terminal. 2. Select the version of terraform you require by using the up and down arrow. 3. Hit **Enter** to select the desired version. The most recently selected versions are presented at the top of the dropdown. ### Supply version on command line -drawing +drawing 1. You can also supply the desired version as an argument on the command line. -2. For example, `tgshift 0.10.5` for version 0.10.5 of terraform. +2. For example, `tgswitch 0.10.5` for version 0.10.5 of terraform. 3. Hit **Enter** to switch.
diff --git a/docs/docs/additional.md b/docs/docs/additional.md index 126e469..aea2b15 100644 --- a/docs/docs/additional.md +++ b/docs/docs/additional.md @@ -6,7 +6,7 @@ ### Homebrew ```ruby -brew upgrade warrensbox/tap/tgshift +brew upgrade warrensbox/tap/tgswitch ``` ### Linux @@ -21,14 +21,14 @@ curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/ ### Homebrew ```ruby -brew uninstall warrensbox/tap/tgshift +brew uninstall warrensbox/tap/tgswitch ``` ### Linux Rerun: ```sh -rm /usr/local/bin/tgshift +rm /usr/local/bin/tgswitch ``` ## Troubleshoot: @@ -45,7 +45,7 @@ install: can't change permissions of /usr/local/bin: Operation not permitted ```ruby "Unable to create symlink. You must have SUDO privileges" ``` -You probably need to have **sudo** privileges to install *tgshift*. +You probably need to have **sudo** privileges to install *tgswitch*. [Back to top](#upgrade) [Back to main](index) \ No newline at end of file diff --git a/docs/docs/index.md b/docs/docs/index.md index ba65d0f..c6421e4 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -1,7 +1,7 @@ # Terraform Switcher -The `tgshift` command line tool lets you switch between different versions of [terraform](https://www.terraform.io/){:target="_blank"}. -If you do not have a particular version of terraform installed, `tgshift` will download the version you desire. +The `tgswitch` command line tool lets you switch between different versions of [terraform](https://www.terraform.io/){:target="_blank"}. +If you do not have a particular version of terraform installed, `tgswitch` will download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terraform. @@ -9,7 +9,7 @@ Once installed, simply select the version you require from the dropdown and star ## Installation -`tgshift` is available for MacOS and Linux based operating systems. +`tgswitch` is available for MacOS and Linux based operating systems. ### Homebrew @@ -17,7 +17,7 @@ Installation for MacOS is the easiest with Homebrew. [If you do not have homebre ```ruby -brew install warrensbox/tap/tgshift +brew install warrensbox/tap/tgswitch ``` ### Linux @@ -36,19 +36,19 @@ Alternatively, you can install the binary from the source [here](https://github. ## How to use: ### Use dropdown menu to select version -drawing +drawing -1. You can switch between different versions of terraform by typing the command `tgshift` on your terminal. +1. You can switch between different versions of terraform by typing the command `tgswitch` on your terminal. 2. Select the version of terraform you require by using the up and down arrow. 3. Hit **Enter** to select the desired version. The most recently selected versions are presented at the top of the dropdown. ### Supply version on command line -drawing +drawing 1. You can also supply the desired version as an argument on the command line. -2. For example, `tgshift 0.10.5` for version 0.10.5 of terraform. +2. For example, `tgswitch 0.10.5` for version 0.10.5 of terraform. 3. Hit **Enter** to switch.
diff --git a/docs/index.md b/docs/index.md index f381ca8..3467213 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,7 +1,7 @@ # Terragrunt Switcher -The `tgshift` command line tool lets you switch between different versions of [terragrunt](https://www.terragrunt.io/){:target="_blank"}. -If you do not have a particular version of terragrunt installed, `tgshift` will download the version you desire. +The `tgswitch` command line tool lets you switch between different versions of [terragrunt](https://www.terragrunt.io/){:target="_blank"}. +If you do not have a particular version of terragrunt installed, `tgswitch` will download the version you desire. The installation is minimal and easy. Once installed, simply select the version you require from the dropdown and start using terragrunt. @@ -9,7 +9,7 @@ Once installed, simply select the version you require from the dropdown and star ## Installation -`tgshift` is available for MacOS and Linux based operating systems. +`tgswitch` is available for MacOS and Linux based operating systems. ### Homebrew @@ -17,7 +17,7 @@ Installation for MacOS is the easiest with Homebrew. [If you do not have homebre ```ruby -brew install warrensbox/tap/tgshift +brew install warrensbox/tap/tgswitch ``` ### Linux @@ -36,19 +36,19 @@ Alternatively, you can install the binary from the source [here](https://github. ## How to use: ### Use dropdown menu to select version -drawing +drawing -1. You can switch between different versions of terragrunt by typing the command `tgshift` on your terminal. +1. You can switch between different versions of terragrunt by typing the command `tgswitch` on your terminal. 2. Select the version of terragrunt you require by using the up and down arrow. 3. Hit **Enter** to select the desired version. The most recently selected versions are presented at the top of the dropdown. ### Supply version on command line -drawing +drawing 1. You can also supply the desired version as an argument on the command line. -2. For example, `tgshift 0.10.5` for version 0.10.5 of terragrunt. +2. For example, `tgswitch 0.10.5` for version 0.10.5 of terragrunt. 3. Hit **Enter** to switch.
diff --git a/install.sh b/install.sh index 64d35a2..3dc5820 100644 --- a/install.sh +++ b/install.sh @@ -5,7 +5,7 @@ set -e usage() { this=$1 cat <