Skip to content

Commit 6e2fb63

Browse files
author
Hugo Rialan
committed
v1 fonctionnelleé
1 parent 4d751a5 commit 6e2fb63

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

hooks/dataform_format.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
#!/bin/sh
22

3-
dataform format
3+
# Check if dataform command is available
4+
if ! command -v dataform >/dev/null 2>&1; then
5+
echo "Error: dataform command not found. Make sure it is installed and available in PATH."
6+
exit 1
7+
fi
8+
9+
# Run Dataform formatting for SQLX files
10+
dataform format
11+
12+
exit 0

0 commit comments

Comments
 (0)