- Introduce `clone-taskfile` function to manage taskfile repository cloning and pulling - Modify `dev-11ty` command to automatically open the browser at `http://localhost:8080/` - Reorder static variable declarations for better script organization - Improve output formatting with colored Git status messages
134 lines
3.3 KiB
Bash
Executable File
134 lines
3.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
help-table() {
|
|
local cmd_width=20
|
|
local opt_width=10
|
|
local desc_width=42
|
|
local column="| %-${cmd_width}s | %-${opt_width}s | %-${desc_width}s |\n"
|
|
|
|
printf "$column" 'Command' 'Option' 'Description'
|
|
echo "|$(printf '%*s' $((cmd_width + 2)) '' | tr ' ' '-')|$(printf '%*s' $((opt_width + 2)) '' | tr ' ' '-')|$(printf '%*s' $((desc_width + 2)) '' | tr ' ' '-')|"
|
|
printf "$column" 'all' '' 'Run all tasks.'
|
|
printf "$column" 'build-11ty' '' 'Build the 11ty website.'
|
|