File tree 5 files changed +25
-4
lines changed
5 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ builds:
12
12
- darwin
13
13
- linux
14
14
15
+ archives :
16
+ - files :
17
+ - configs/autocomplete/*
18
+ - LICENSE
19
+
15
20
checksum :
16
21
name_template : ' checksums.txt'
17
22
algorithm : sha256
@@ -28,9 +33,19 @@ brews:
28
33
caveats : " flora --help"
29
34
homepage : " https://github.com/ketchoop/flora"
30
35
description : " Allows to manage and switch between multiple terraform versions"
36
+ conflicts :
37
+ - terraform
31
38
custom_block : |
32
39
head "https://github.com/ketchoop/flora.git"
33
40
test : |
34
41
system "#{bin}/flora", "--help"
35
42
install : |
43
+ case File.basename(ENV["SHELL"])
44
+ when "zsh"
45
+ zsh_completion.install "configs/autocomplete/flora_zsh_autocomplete" => "_flora"
46
+ when "bash"
47
+ url "https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_bash_autocomplete"
48
+ bash_completion.install "configs/autocomplete/flora_bash_autocomplete" => "_flora"
49
+ end
50
+
36
51
bin.install "flora"
Original file line number Diff line number Diff line change @@ -17,15 +17,21 @@ compatible with your **.tf manifests** Terraform binary.
17
17
18
18
## Install
19
19
20
+ 1 . By * brew install*
21
+ ```
22
+ brew install ketchoop/homebrew-tap/flora
23
+
24
+ mkdir -p ~/flora/.bin
25
+ ```
20
26
21
- 1 . By * go get*
27
+ 2 . By * go get*
22
28
```
23
29
go get -u github.com/ketchoop/flora/cmd/flora
24
30
25
31
mkdir -p ~/flora/.bin
26
32
```
27
33
28
- 2 . By install.sh
34
+ 3 . By install.sh
29
35
```
30
36
curl https://raw.githubusercontent.com/ketchoop/flora/master/install.sh | bash
31
37
```
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ function install_autocompletion() {
16
16
local zsh_autocomplete_path=" /usr/local/share/zsh/site-functions"
17
17
18
18
pushd " $zsh_autocomplete_path " > /dev/null
19
- curl -sL " https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_zsh_autcomplete " -o _flora
19
+ curl -sL " https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_zsh_autocomplete " -o _flora
20
20
popd
21
21
;;
22
22
bash)
23
23
local bash_autocomplete_path=" /etc/bash_completion.d"
24
24
25
25
pushd " $bash_autocomplete_path " > /dev/null
26
- curl -sLO " https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_bash_autcomplete "
26
+ curl -sLO " https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_bash_autocomplete "
27
27
popd
28
28
;;
29
29
esac
You can’t perform that action at this time.
0 commit comments