Skip to content

Commit

Permalink
Closes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Boyko authored and ketchoop committed Nov 12, 2019
1 parent f4628c3 commit 66ff560
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ builds:
- darwin
- linux

archives:
- files:
- configs/autocomplete/*
- LICENSE

checksum:
name_template: 'checksums.txt'
algorithm: sha256
Expand All @@ -28,9 +33,19 @@ brews:
caveats: "flora --help"
homepage: "https://github.com/ketchoop/flora"
description: "Allows to manage and switch between multiple terraform versions"
conflicts:
- terraform
custom_block: |
head "https://github.com/ketchoop/flora.git"
test: |
system "#{bin}/flora", "--help"
install: |
case File.basename(ENV["SHELL"])
when "zsh"
zsh_completion.install "configs/autocomplete/flora_zsh_autocomplete" => "_flora"
when "bash"
url "https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_bash_autocomplete"
bash_completion.install "configs/autocomplete/flora_bash_autocomplete" => "_flora"
end
bin.install "flora"
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ compatible with your **.tf manifests** Terraform binary.

## Install

1. By *brew install*
```
brew install ketchoop/homebrew-tap/flora
mkdir -p ~/flora/.bin
```

1. By *go get*
2. By *go get*
```
go get -u github.com/ketchoop/flora/cmd/flora
mkdir -p ~/flora/.bin
```

2. By install.sh
3. By install.sh
```
curl https://raw.githubusercontent.com/ketchoop/flora/master/install.sh | bash
```
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ function install_autocompletion() {
local zsh_autocomplete_path="/usr/local/share/zsh/site-functions"

pushd "$zsh_autocomplete_path" > /dev/null
curl -sL "https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_zsh_autcomplete" -o _flora
curl -sL "https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_zsh_autocomplete" -o _flora
popd
;;
bash)
local bash_autocomplete_path="/etc/bash_completion.d"

pushd "$bash_autocomplete_path" > /dev/null
curl -sLO "https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_bash_autcomplete"
curl -sLO "https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_bash_autocomplete"
popd
;;
esac
Expand Down

0 comments on commit 66ff560

Please sign in to comment.