We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
run_hook_on_whole_repo
1 parent 5cf8772 commit b273235Copy full SHA for b273235
hooks/terraform_graph.sh
@@ -71,4 +71,20 @@ function per_dir_hook_unique_part {
71
return $exit_code
72
}
73
74
+# Arguments:
75
+# args (array) arguments that configure wrapped tool behavior
76
+#######################################################################
77
+function run_hook_on_whole_repo {
78
+ local -a -r args=("$@")
79
+ local text_file="graph.svg"
80
+
81
+ # pass the arguments to hook
82
+ echo "${args[@]}" >> run_hook_on_whole_repo
83
+ terraform graph "$(pwd)" "${args[@]}" | dot -Tsvg > "$text_file"
84
85
+ # return exit code to common::per_dir_hook
86
+ local exit_code=$?
87
+ return $exit_code
88
+}
89
90
[ "${BASH_SOURCE[0]}" != "$0" ] || main "$@"
0 commit comments