save works
This commit is contained in:
parent
acfbec875b
commit
3f74f14687
38 changed files with 751 additions and 448 deletions
|
|
@ -1,16 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
APP="$0"
|
||||
|
||||
usage() {
|
||||
local _f
|
||||
|
||||
_f=$(dirname "$APP")/share/xce.md
|
||||
_f=$(dirname "$(which xce_controller)")/../share/docs/xce.md
|
||||
|
||||
if [ ! -f "$_f" ]; then
|
||||
echo no document found
|
||||
else
|
||||
glow -p ${_f}
|
||||
glow -p "${_f}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -20,6 +18,11 @@ if [ "${debug}" = "yes" ]; then
|
|||
set -x
|
||||
fi
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
controller)
|
||||
shift
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue