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.
1 parent 08f6166 commit bf8e74fCopy full SHA for bf8e74f
terraform/update-docs.sh
@@ -2,11 +2,13 @@
2
3
set -euo pipefail
4
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+cd "$SCRIPT_DIR"
6
files=()
7
find "${SCRIPT_DIR}"/* -type d | while read -r i; do
8
module_name=$(basename "$i")
9
markdown_file="${SCRIPT_DIR}/${module_name}.md"
10
terraform-docs --config "${SCRIPT_DIR}/.terraform-docs.yml" markdown table --output-file "${markdown_file}" --output-mode inject "${module_name}"
11
files+=("${markdown_file}")
12
done
-nix fmt -- "${files[@]}"
13
+cd ..
14
+nix fmt -- --no-cache
0 commit comments