Initial commit
This commit is contained in:
commit
a844b21356
8 changed files with 105 additions and 0 deletions
25
run
Executable file
25
run
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
function clean {
|
||||
rm -fr dst "${@}"
|
||||
mkdir dst
|
||||
}
|
||||
|
||||
function generate {
|
||||
./result/bin/ssg "src" "dst" "test" "http://localhost"
|
||||
}
|
||||
|
||||
function help {
|
||||
printf "%s <task> [args]\n\nTasks:\n" "${0}"
|
||||
|
||||
compgen -A function | grep -v "^_" | cat -n
|
||||
|
||||
printf "\nExtended help:\n Each task has comments for general usage\n"
|
||||
}
|
||||
|
||||
TIMEFORMAT="Task completed in %3lR"
|
||||
time "${@:-help}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue