From 9bc1a5ab8fac548210fdbf7d098f02919317ec3c Mon Sep 17 00:00:00 2001 From: "warren.veerasingam@gmail.com" Date: Thu, 16 Apr 2020 17:30:39 -0500 Subject: [PATCH 1/2] improve documentation --- .circleci/config.yml | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e25039e..7dd98d51 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ version: 2 jobs: build: docker: - - image: circleci/golang:1.10 + - image: circleci/golang:1.13 working_directory: /go/src/github.com/warrensbox/terraform-switcher @@ -22,7 +22,7 @@ jobs: release: docker: - - image: circleci/golang:1.11 + - image: circleci/golang:1.13 working_directory: /go/src/github.com/warrensbox/terraform-switcher diff --git a/README.md b/README.md index e90ee4c7..ea8e8704 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ Add the following to the end of your `~/.bashrc` file: cdtfswitch(){ builtin cd "$@"; cdir=$PWD; - if [ -f "$cdir/.tfswitchrc" ]; then + if [ -e "$cdir/.tfswitchrc" ]; then tfswitch fi } @@ -146,7 +146,7 @@ load-tfswitch cd(){ builtin cd "$@"; cdir=$PWD; - if [ -f "$cdir/.tfswitchrc" ]; then + if [ -e "$cdir/.tfswitchrc" ]; then tfswitch fi } From 1514b14d802c4b7cd521603e6f0bc45171edc44e Mon Sep 17 00:00:00 2001 From: "warren.veerasingam@gmail.com" Date: Thu, 16 Apr 2020 17:35:52 -0500 Subject: [PATCH 2/2] Updated external docs --- docs/_site/additional.html | 2 +- docs/_site/index.html | 7 ++++--- docs/_site/index.md | 6 ++++-- docs/index.md | 6 ++++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/docs/_site/additional.html b/docs/_site/additional.html index 3804fb02..fc8b6baf 100644 --- a/docs/_site/additional.html +++ b/docs/_site/additional.html @@ -23,7 +23,7 @@ {"description":"A command line tool to switch between different versions of terraform (with homebrew and more)","@type":"WebPage","url":"/additional.html","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"/assets/img/logo.png"}},"headline":"tfswitch","@context":"http://schema.org"} - + diff --git a/docs/_site/index.html b/docs/_site/index.html index afbfaedd..bcf44a64 100644 --- a/docs/_site/index.html +++ b/docs/_site/index.html @@ -23,7 +23,7 @@ {"name":"tfswitch","description":"A command line tool to switch between different versions of terraform (with homebrew and more)","@type":"WebSite","url":"/","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"/assets/img/logo.png"}},"headline":"Terraform Switcher","@context":"http://schema.org"} - + @@ -146,6 +146,7 @@

Use version.tf file

}

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

@@ -184,7 +185,7 @@

Use .tfswitchrc file

cdtfswitch(){
   builtin cd "$@";
   cdir=$PWD;
-  if [ -f "$cdir/.tfswitchrc" ]; then
+  if [ -e "$cdir/.tfswitchrc" ]; then
     tfswitch
   fi
 }
@@ -215,7 +216,7 @@ 

Use .tfswitchrc file

cd(){
   builtin cd "$@";
   cdir=$PWD;
-  if [ -f "$cdir/.tfswitchrc" ]; then
+  if [ -e "$cdir/.tfswitchrc" ]; then
     tfswitch
   fi
 }
diff --git a/docs/_site/index.md b/docs/_site/index.md
index 4b450544..ad4500e5 100644
--- a/docs/_site/index.md
+++ b/docs/_site/index.md
@@ -71,6 +71,8 @@ terraform {
 }
 ```
 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
 
@@ -106,7 +108,7 @@ Add the following to the end of your `~/.bashrc` file:
 cdtfswitch(){
   builtin cd "$@";
   cdir=$PWD;
-  if [ -f "$cdir/.tfswitchrc" ]; then
+  if [ -e "$cdir/.tfswitchrc" ]; then
     tfswitch
   fi
 }
@@ -138,7 +140,7 @@ load-tfswitch
 cd(){
   builtin cd "$@";
   cdir=$PWD;
-  if [ -f "$cdir/.tfswitchrc" ]; then
+  if [ -e "$cdir/.tfswitchrc" ]; then
     tfswitch
   fi
 }
diff --git a/docs/index.md b/docs/index.md
index 4b450544..ad4500e5 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -71,6 +71,8 @@ terraform {
 }
 ```
 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
 
@@ -106,7 +108,7 @@ Add the following to the end of your `~/.bashrc` file:
 cdtfswitch(){
   builtin cd "$@";
   cdir=$PWD;
-  if [ -f "$cdir/.tfswitchrc" ]; then
+  if [ -e "$cdir/.tfswitchrc" ]; then
     tfswitch
   fi
 }
@@ -138,7 +140,7 @@ load-tfswitch
 cd(){
   builtin cd "$@";
   cdir=$PWD;
-  if [ -f "$cdir/.tfswitchrc" ]; then
+  if [ -e "$cdir/.tfswitchrc" ]; then
     tfswitch
   fi
 }