Commit 2b3397b 1 parent fda9c3a commit 2b3397b Copy full SHA for 2b3397b
File tree 5 files changed +14
-1
lines changed
shared-files/taskfile/libraries
5 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 39
39
init :
40
40
desc : Initialize the golang
41
41
silent : true
42
+ internal : true
42
43
cmds :
43
44
- defer : " echo ✅ Golang are initialized"
44
45
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ version: "3"
4
4
tasks :
5
5
tools:brew :
6
6
desc : brew install
7
+ internal : true
7
8
silent : true
8
9
preconditions :
9
10
- sh : command -v brew
17
18
18
19
tools:brew:optional :
19
20
desc : brew install
21
+ internal : true
20
22
silent : true
21
23
preconditions :
22
24
- sh : command -v brew
32
34
33
35
tools:brew:tap :
34
36
desc : brew tap
37
+ internal : true
35
38
silent : true
36
39
preconditions :
37
40
- sh : command -v brew
Original file line number Diff line number Diff line change 29
29
init :
30
30
desc : Initialize the license
31
31
silent : true
32
+ internal : true
32
33
cmds :
33
34
- defer : echo "✅ License are initialized"
34
35
Original file line number Diff line number Diff line change 9
9
lint :
10
10
desc : Run pre-commit linters
11
11
silent : true
12
+ internal : true
12
13
cmds :
13
14
- echo "🚧 No linters available for pre-commit"
14
15
23
24
cmds :
24
25
- defer : echo "✅ Pre-commit are initialized"
25
26
- pre-commit install
27
+ - pre-commit install --install-hooks
26
28
27
29
install :
28
30
desc : Install required tools
Original file line number Diff line number Diff line change 5
5
IS_MODULE :
6
6
# The pattern of terraform module name is terraform-cloudavenue-<nameofmodule>.
7
7
# Detect if it's a module with the presence of the terraform-cloudavenue- keyword in the last part of the path
8
- sh : awk -F/ '{print $NF}' <<< $(pwd) | grep -q "terraform-cloudavenue-" && echo "true" || echo "false"
8
+ sh : |
9
+ if [[ $IS_MODULE == "" ]]; then
10
+ awk -F/ '{print $NF}' <<< $(pwd) | grep -q "terraform-cloudavenue-" && echo "true" || echo "false"
11
+ else
12
+ echo $IS_MODULE
13
+ fi
9
14
10
15
includes :
11
16
internal : internal.yml
15
20
init :
16
21
desc : Initialize the terraform
17
22
silent : true
23
+ internal : true
18
24
cmds :
19
25
- defer : " echo ✅ Terraform are initialized"
20
26
- cmd : terraform init
You can’t perform that action at this time.
0 commit comments