Skip to content

Commit a0300ba

Browse files
authored
Merge pull request #28 from warrensbox/master
0.4 additional features - cached the recently selected versions at the top of the dropdown menu - added option to supply desired version on the command line
2 parents d67cb76 + 248b5fa commit a0300ba

File tree

14 files changed

+400
-30
lines changed

14 files changed

+400
-30
lines changed

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,19 @@ jobs:
4141

4242
develop-master:
4343
docker:
44-
- image: circleci/golang:1.10
44+
- image: warrensbox/go-rb-py-aws
4545

4646
steps:
4747
- checkout
4848
- run:
4949
command: |
5050
echo "Placeholder"
51+
# cd docs; bundle install --path vendor/bundler; bundle exec jekyll build -c _config.yml; cd ..
52+
# git config user.email "warren.veerasingam@gmail.com"
53+
# git config user.name "warrensbox"
54+
# git add .
55+
# git commit -m "Release Version"
56+
# git push origin ${RELEASE_VERSION}
5157
5258
5359
release:

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ main
2121
build
2222
dist
2323

24-
.DS_Store
24+
.DS_Store
25+
26+
docs/vendor/**
27+
28+
docs/.bundle/**
29+
30+
.sass-cache

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
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.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
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.
28+
29+
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.
30+
31+
## Scope
32+
33+
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.
34+
35+
## Enforcement
36+
37+
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.
38+
39+
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.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
# Terraform Switcher
66

7-
<img style="text-allign:center" src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/smallerlogo.png" alt="drawing" width="120" height="130"/>
7+
<img style="text-allign:center" src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/smallerlogo.png" alt="drawing" width="120" height="130"/>
88

9-
<!-- ![gopher](https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/logo.png =100x20) -->
9+
<!-- ![gopher](https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/logo.png =100x20) -->
1010

1111
The `tfswitch` command line tool lets you switch between different versions of [terraform](https://www.terraform.io/).
1212
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/
4141
Alternatively, you can install the binary from source [here](https://github.com/warrensbox/terraform-switcher/releases)
4242

4343
## How to use:
44-
45-
<img src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch.gif" alt="drawing" style="width: 180px;"/>
44+
### Use dropdown menu to select version
45+
<img src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/tfswitch.gif" alt="drawing" style="width: 180px;"/>
4646

4747
1. You can switch between different versions of terraform by typing the command `tfswitch` on your terminal.
4848
2. Select the version of terraform you require by using the up and down arrow.
49-
3. Hit **Enter** to select the desired version
49+
3. Hit **Enter** to select the desired version.
50+
51+
The most recently selected versions are presented at the top of the dropdown.
52+
53+
### Supply version on command line
54+
<img src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/tfswitch-v4.gif" alt="drawing" style="width: 170px;"/>
55+
56+
1. You can also supply the desired version as an argument on the command line.
57+
2. For example, `tfswitch 0.10.5` for version 0.10.5 of terraform.
58+
3. Hit **Enter** to switch.
5059

5160
## Additional Info
5261

docs/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
source 'https://rubygems.org'
22
gem 'github-pages', group: :jekyll_plugins
33
gem "minima"
4+
5+
gem "commonmarker"

docs/Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ PLATFORMS
243243
ruby
244244

245245
DEPENDENCIES
246+
commonmarker
246247
github-pages
247248
minima
248249

docs/_layouts/default.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<meta name="description" content="The tfswitch command line tool lets you switch between different versions of terraform.">
88

9+
10+
<link rel="icon" type="image/png" href="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/favicon_tfswitch_48.png" sizes="16x16">
11+
<link rel="icon" type="image/png" href="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/favicon_tfswitch_32.png" sizes="32x32">
12+
<link rel="icon" type="image/png" href="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/favicon_tfswitch_48.png" sizes="48x48">
13+
914
{% seo %}
1015
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
1116
<!--[if lt IE 9]>
@@ -29,7 +34,7 @@
2934
<!-- <h1 style="font-size:25px; text-align: center"><a href="{{ "/" | absolute_url }}">tfswitch</a></h1> -->
3035

3136
<p align="center">
32-
<img align="middle" src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/logo.png" alt="Logo" />
37+
<img align="middle" src="https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/tfswitch/logo.png" alt="Logo" />
3338
</p>
3439

3540
<p style="text-align: center">{{ site.description | default: site.github.project_tagline }}</p>

docs/_site/Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages', group: :jekyll_plugins
3+
gem "minima"
4+
5+
gem "commonmarker"

0 commit comments

Comments
 (0)