Hooks System
Automate workflows with pre and post-processing hooks.
Overview
Full hooks system coming in a future release
Hooks will allow you to run custom scripts:
- Before compilation
- After compilation
- On validation
- On simulation
Planned Features
Pre-compile Hooks
Run checks before compiling:
bash
# .gscript/hooks/pre-compile.sh
#!/bin/bash
echo "Running pre-compile checks..."
gscriptc validate $1Post-compile Hooks
Process generated G-code:
bash
# .gscript/hooks/post-compile.sh
#!/bin/bash
echo "Generated: $1"
# Upload to machine, send notification, etc.Configuration
yaml
# .gscript/config.yaml
hooks:
pre-compile: hooks/pre-compile.sh
post-compile: hooks/post-compile.shCurrent Status
Basic hook support is under development. See:
Use Cases
- Auto-validate before compile
- Send notifications on completion
- Upload to machine automatically
- Run simulation automatically
- Generate documentation
- Archive G-code with metadata