-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ok
16 lines (16 loc) · 786 Bytes
/
.ok
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
install: . awkcss.bash # or reload
# Examples
awkcss "$@" 'NR % 2 == 1 { color(red); } NR % 2 == 0 { color(green); }' < examples/markdown.awkcss
md: head -n ${1:-35} README.md | awkcss -f examples/markdown.awkcss "${@:2}"
zebra: awkcss "$@" -s examples/zebra.awkcss ~/.profile ~/.bashrc
awkcss -f examples/color-interleaving.awkcss "$@" examples/markdown.awkcss
awkcss -F ':' -s examples/passwd.awkcss "$@" /etc/passwd
all: awkcss -f examples/all.awkcss examples/all.txt
# navigating away
cd; awkcss -s examples/zebra.awkcss < ${1:-.profile} #or .bashrc; `cd -` to go back
# tests
cd fiddle
test: ./test.sh "$@" # Run all tests
./test.sh help # Show usage
./test.sh run defaults.awkcss # Generate test-case error
./test.sh run does-not-exist.awkcss # Generate another test-case error