From 91922e172e02f6be890bf3cce3e3bf9c3ac6b07f Mon Sep 17 00:00:00 2001 From: "warren.veerasingam@gmail.com" Date: Mon, 17 Aug 2020 11:14:11 -0500 Subject: [PATCH] prune images --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d0560bec..fd17d8b6 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ 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 terraform by typing the command `tfswitch` on your terminal. 2. Select the version of terraform you require by using the up and down arrow. @@ -51,14 +51,14 @@ Alternatively, you can install the binary from source [here](https://github.com/ 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, `tfswitch 0.10.5` for version 0.10.5 of terraform. 3. Hit **Enter** to switch. ### See all versions including beta, alpha and release candidates(rc) -drawing +drawing 1. Display all versions including beta, alpha and release candidates(rc). 2. For example, `tfswitch -l` or `tfswitch --list-all` to see all versions. @@ -66,7 +66,7 @@ The most recently selected versions are presented at the top of the dropdown. ### Use version.tf file If a .tf file with the terraform constrain is included in the current directory, it should automatically download or switch to that terraform version. For example, the following should automatically switch terraform to the lastest version: -``` +```ruby terraform { required_version = ">= 0.12.9" @@ -76,15 +76,15 @@ terraform { } } ``` -drawing +drawing ### Use .tfswitch.toml file (For non-admin - users with limited privilege on their computers) This is similiar to using a .tfswitchrc file, but you can specify a custom binary path for your terraform installation -drawing +drawing -drawing +drawing 1. Create a custom binary path. Ex: `mkdir /Users/warrenveerasingam/bin` (replace warrenveerasingam with your username) 2. Add the path to your PATH. Ex: `export PATH=$PATH:/Users/warrenveerasingam/bin` (add this to your bash profile or zsh profile) @@ -98,7 +98,7 @@ version = "0.11.3" 4. Run `tfswitch` and it should automatically install the required terraform version in the specified binary path ### Use .tfswitchrc file -drawing +drawing 1. Create a `.tfswitchrc` file containing the desired version 2. For example, `echo "0.10.5" >> .tfswitchrc` for version 0.10.5 of terraform @@ -111,7 +111,7 @@ version = "0.11.3" Add the following to the end of your `~/.bashrc` file: (Use either `.tfswitchrc` or `.tfswitch.toml` or `.terraform-version`) -``` +```sh cdtfswitch(){ builtin cd "$@"; cdir=$PWD; @@ -126,7 +126,7 @@ alias cd='cdtfswitch' Add the following to the end of your `~/.zshrc` file: -``` +```sh load-tfswitch() { local tfswitchrc_path=".tfswitchrc" @@ -143,7 +143,7 @@ load-tfswitch > ``` *older version of zsh* -``` +```sh cd(){ builtin cd "$@"; cdir=$PWD; @@ -156,7 +156,7 @@ cd(){ ### Jenkins setup drawing -``` +```sh #!/bin/bash echo "Installing tfswitch locally"