13 lines
259 B
Plaintext
13 lines
259 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
list() {
|
||
|
root_dir=`kickstart root-dir`
|
||
|
find $root_dir/docs -type f | sed -e 's/.md$//' | cut -c `wc -c <<<$root_dir/docs/`- | tr '/' '.'
|
||
|
}
|
||
|
|
||
|
show() {
|
||
|
cat `kickstart root-dir`/docs/$(echo $1 | tr '.' '/').md
|
||
|
}
|
||
|
|
||
|
[ -z "$1" ] && list || show $1
|