feat(serverutils): improve TUI UX, arg handling, and script execution… #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check Shell Script Formatting 🎨 | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'serverutils' | |
| - 'Scripts/**' | |
| - '.editorconfig' | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'serverutils' | |
| - 'Scripts/**' | |
| - '.editorconfig' | |
| permissions: | |
| contents: read | |
| jobs: | |
| shfmt-check: | |
| name: Check Formatting (shfmt) ✨ | |
| runs-on: ubuntu-latest | |
| continue-on-error: true # don't block merges while stabilizing | |
| steps: | |
| - name: Check out code 🛒 | |
| uses: actions/checkout@v4 | |
| - name: Run shfmt Format Check 🧐 | |
| run: | | |
| echo " " | |
| echo "🎨 Running 'shfmt -i 2 -ci -sr -d' on ./Scripts and ./serverutils ..." | |
| echo "-------------------------------------------------------------" | |
| docker pull mvdan/shfmt:latest-alpine | |
| docker run --rm -v "$(pwd):/mnt" -w /mnt mvdan/shfmt:latest-alpine -i 2 -ci -sr -d ./Scripts ./serverutils | |
| echo "-------------------------------------------------------------" | |
| echo "✅ Formatting check complete! (Will fail if diffs were found)" |