diff --git a/.circleci/config.yml b/.circleci/config.yml index 1c2524ec..15a67064 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,13 +41,19 @@ jobs: develop-master: docker: - - image: circleci/golang:1.10 + - image: warrensbox/go-rb-py-aws steps: - checkout - run: command: | echo "Placeholder" + # cd docs; bundle install --path vendor/bundler; bundle exec jekyll build -c _config.yml; cd .. + # git config user.email "warren.veerasingam@gmail.com" + # git config user.name "warrensbox" + # git add . + # git commit -m "Release Version" + # git push origin ${RELEASE_VERSION} release: diff --git a/.gitignore b/.gitignore index 771f2c13..0dff14c7 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,10 @@ main build dist -.DS_Store \ No newline at end of file +.DS_Store + +docs/vendor/** + +docs/.bundle/** + +.sass-cache \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..821fce45 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@warrensbox.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/README.md b/README.md index 18270898..65a439e9 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ # Terraform Switcher -drawing +drawing - + The `tfswitch` command line tool lets you switch between different versions of [terraform](https://www.terraform.io/). If you do not have a particular version of terraform installed, `tfswitch` will download the version you desire. @@ -41,12 +41,21 @@ curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/ Alternatively, you can install the binary from source [here](https://github.com/warrensbox/terraform-switcher/releases) ## How to use: - -drawing +### Use dropdown menu to select version +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. -3. Hit **Enter** to select the desired version +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 + +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. ## Additional Info diff --git a/docs/Gemfile b/docs/Gemfile index 7c305a71..e70cde40 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -1,3 +1,5 @@ source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins gem "minima" + +gem "commonmarker" \ No newline at end of file diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 7c07dd68..345b38c3 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -243,6 +243,7 @@ PLATFORMS ruby DEPENDENCIES + commonmarker github-pages minima diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 49a97297..79dfe7ba 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -6,6 +6,11 @@ + + + + + {% seo %}

- Logo + Logo

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

diff --git a/docs/_site/Gemfile b/docs/_site/Gemfile new file mode 100644 index 00000000..e70cde40 --- /dev/null +++ b/docs/_site/Gemfile @@ -0,0 +1,5 @@ +source 'https://rubygems.org' +gem 'github-pages', group: :jekyll_plugins +gem "minima" + +gem "commonmarker" \ No newline at end of file diff --git a/docs/_site/Gemfile.lock b/docs/_site/Gemfile.lock new file mode 100644 index 00000000..345b38c3 --- /dev/null +++ b/docs/_site/Gemfile.lock @@ -0,0 +1,251 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (4.2.9) + i18n (~> 0.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.11.1) + colorator (1.1.0) + commonmarker (0.17.9) + ruby-enum (~> 0.5) + concurrent-ruby (1.0.5) + dnsruby (1.60.2) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + ethon (0.11.0) + ffi (>= 1.3.0) + eventmachine (1.2.7) + execjs (2.7.0) + faraday (0.15.2) + multipart-post (>= 1.2, < 3) + ffi (1.9.23) + forwardable-extended (2.6.0) + gemoji (3.0.0) + github-pages (185) + activesupport (= 4.2.9) + github-pages-health-check (= 1.8.1) + jekyll (= 3.7.3) + jekyll-avatar (= 0.5.0) + jekyll-coffeescript (= 1.1.1) + jekyll-commonmark-ghpages (= 0.1.5) + jekyll-default-layout (= 0.1.4) + jekyll-feed (= 0.9.3) + jekyll-gist (= 1.5.0) + jekyll-github-metadata (= 2.9.4) + jekyll-mentions (= 1.3.0) + jekyll-optional-front-matter (= 0.3.0) + jekyll-paginate (= 1.1.0) + jekyll-readme-index (= 0.2.0) + jekyll-redirect-from (= 0.13.0) + jekyll-relative-links (= 0.5.3) + jekyll-remote-theme (= 0.3.1) + jekyll-sass-converter (= 1.5.2) + jekyll-seo-tag (= 2.4.0) + jekyll-sitemap (= 1.2.0) + jekyll-swiss (= 0.4.0) + jekyll-theme-architect (= 0.1.1) + jekyll-theme-cayman (= 0.1.1) + jekyll-theme-dinky (= 0.1.1) + jekyll-theme-hacker (= 0.1.1) + jekyll-theme-leap-day (= 0.1.1) + jekyll-theme-merlot (= 0.1.1) + jekyll-theme-midnight (= 0.1.1) + jekyll-theme-minimal (= 0.1.1) + jekyll-theme-modernist (= 0.1.1) + jekyll-theme-primer (= 0.5.3) + jekyll-theme-slate (= 0.1.1) + jekyll-theme-tactile (= 0.1.1) + jekyll-theme-time-machine (= 0.1.1) + jekyll-titles-from-headings (= 0.5.1) + jemoji (= 0.9.0) + kramdown (= 1.16.2) + liquid (= 4.0.0) + listen (= 3.1.5) + mercenary (~> 0.3) + minima (= 2.4.1) + nokogiri (>= 1.8.1, < 2.0) + rouge (= 2.2.1) + terminal-table (~> 1.4) + github-pages-health-check (1.8.1) + addressable (~> 2.3) + dnsruby (~> 1.60) + octokit (~> 4.0) + public_suffix (~> 2.0) + typhoeus (~> 1.3) + html-pipeline (2.8.0) + activesupport (>= 2) + nokogiri (>= 1.4) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.7.3) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-avatar (0.5.0) + jekyll (~> 3.0) + jekyll-coffeescript (1.1.1) + coffee-script (~> 2.2) + coffee-script-source (~> 1.11.1) + jekyll-commonmark (1.2.0) + commonmarker (~> 0.14) + jekyll (>= 3.0, < 4.0) + jekyll-commonmark-ghpages (0.1.5) + commonmarker (~> 0.17.6) + jekyll-commonmark (~> 1) + rouge (~> 2) + jekyll-default-layout (0.1.4) + jekyll (~> 3.0) + jekyll-feed (0.9.3) + jekyll (~> 3.3) + jekyll-gist (1.5.0) + octokit (~> 4.2) + jekyll-github-metadata (2.9.4) + jekyll (~> 3.1) + octokit (~> 4.0, != 4.4.0) + jekyll-mentions (1.3.0) + activesupport (~> 4.0) + html-pipeline (~> 2.3) + jekyll (~> 3.0) + jekyll-optional-front-matter (0.3.0) + jekyll (~> 3.0) + jekyll-paginate (1.1.0) + jekyll-readme-index (0.2.0) + jekyll (~> 3.0) + jekyll-redirect-from (0.13.0) + jekyll (~> 3.3) + jekyll-relative-links (0.5.3) + jekyll (~> 3.3) + jekyll-remote-theme (0.3.1) + jekyll (~> 3.5) + rubyzip (>= 1.2.1, < 3.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.4.0) + jekyll (~> 3.3) + jekyll-sitemap (1.2.0) + jekyll (~> 3.3) + jekyll-swiss (0.4.0) + jekyll-theme-architect (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-cayman (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-dinky (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-hacker (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-leap-day (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-merlot (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-midnight (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-minimal (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-modernist (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-primer (0.5.3) + jekyll (~> 3.5) + jekyll-github-metadata (~> 2.9) + jekyll-seo-tag (~> 2.0) + jekyll-theme-slate (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-tactile (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-time-machine (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-titles-from-headings (0.5.1) + jekyll (~> 3.3) + jekyll-watch (2.0.0) + listen (~> 3.0) + jemoji (0.9.0) + activesupport (~> 4.0, >= 4.2.9) + gemoji (~> 3.0) + html-pipeline (~> 2.2) + jekyll (~> 3.0) + kramdown (1.16.2) + liquid (4.0.0) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + mercenary (0.3.6) + mini_portile2 (2.3.0) + minima (2.4.1) + jekyll (~> 3.5) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + minitest (5.11.3) + multipart-post (2.0.0) + nokogiri (1.8.2) + mini_portile2 (~> 2.3.0) + octokit (4.9.0) + sawyer (~> 0.8.0, >= 0.5.3) + pathutil (0.16.1) + forwardable-extended (~> 2.6) + public_suffix (2.0.5) + rb-fsevent (0.10.3) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rouge (2.2.1) + ruby-enum (0.7.2) + i18n + ruby_dep (1.5.0) + rubyzip (1.2.1) + safe_yaml (1.0.4) + sass (3.5.6) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + thread_safe (0.3.6) + typhoeus (1.3.0) + ethon (>= 0.9.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + unicode-display_width (1.3.2) + +PLATFORMS + ruby + +DEPENDENCIES + commonmarker + github-pages + minima + +BUNDLED WITH + 1.16.2 diff --git a/docs/_site/additional.html b/docs/_site/additional.html index 52ed0a11..6f8b28bb 100644 --- a/docs/_site/additional.html +++ b/docs/_site/additional.html @@ -6,6 +6,11 @@ + + + + + tfswitch | Manage terraform versions - the tfswitch command line tool lets you switch between different versions of terraform @@ -20,7 +25,7 @@ {"description":"Manage terraform versions - the tfswitch 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":"tfswitch","@context":"http://schema.org"} - + @@ -42,7 +47,7 @@

- Logo + Logo

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

@@ -54,8 +59,8 @@ @@ -108,12 +113,12 @@

Troubleshoot:

Back to main

-

VERSION: 0.3.379. This project is maintained by warrensbox

+

VERSION: 0.3.475. This project is maintained by warrensbox

diff --git a/docs/_site/index.html b/docs/_site/index.html index 68204b87..70cd4291 100644 --- a/docs/_site/index.html +++ b/docs/_site/index.html @@ -6,6 +6,11 @@ + + + + + Terraform Switcher | tfswitch @@ -20,7 +25,7 @@ {"name":"tfswitch","description":"Manage terraform versions - the tfswitch 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"} - + @@ -42,7 +47,7 @@

- Logo + Logo

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

@@ -54,8 +59,8 @@ @@ -96,13 +101,24 @@

Install from source


How to use:

- -

drawing

+

Use dropdown menu to select version

+

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.
  3. -
  4. Hit Enter to select the desired version
  5. +
  6. Hit Enter to select the desired version.
  7. +
+ +

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

+ +

Supply version on command line

+

drawing

+ +
    +
  1. You can also supply the desired version as an argument on the command line.
  2. +
  3. For example, tfswitch 0.10.5 for version 0.10.5 of terraform.
  4. +
  5. Hit Enter to switch.

@@ -117,12 +133,12 @@

Issues

Additional Info

-

VERSION: 0.3.379. This project is maintained by warrensbox

+

VERSION: 0.3.475. This project is maintained by warrensbox

diff --git a/docs/_site/index.md b/docs/_site/index.md index 6f296339..1ed6e377 100644 --- a/docs/_site/index.md +++ b/docs/_site/index.md @@ -35,12 +35,21 @@ Alternatively, you can install the binary from the source [here](https://github.
## How to use: - -drawing +### Use dropdown menu to select version +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. -3. Hit **Enter** to select the desired version +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 + +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.
diff --git a/docs/index.md b/docs/index.md index 6f296339..1ed6e377 100644 --- a/docs/index.md +++ b/docs/index.md @@ -35,12 +35,21 @@ Alternatively, you can install the binary from the source [here](https://github.
## How to use: - -drawing +### Use dropdown menu to select version +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. -3. Hit **Enter** to select the desired version +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 + +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.
diff --git a/version b/version index 1dd1196a..fe3b706c 100644 --- a/version +++ b/version @@ -1 +1 @@ -RELEASE_VERSION=0.3 \ No newline at end of file +RELEASE_VERSION=0.4 \ No newline at end of file