all repos — scriptura @ eea12c75e45b3ad7b76dfb89861fea82cad01c04

a corner in $HOME for your scripts

split helpers into files

Alan Pearce
commit

eea12c75e45b3ad7b76dfb89861fea82cad01c04

parent

fd61ac887fd4160094757c843ca55cbe1a49f552

1 file changed, 18 insertions(+), 0 deletions(-)

changed files
A functions/__scriptura_help.fish
@@ -0,0 +1,18 @@
+function __scriptura_help --argument-names file_or_dir + if path is --type dir $file_or_dir + set --function help_file $file_or_dir/help + else + set --function help_file $file_or_dir.help + end + + if path is --type file $help_file + __scriptura_cat $help_file + else if path is --type dir $file_or_dir + echo "$(path basename $file_or_dir) commands" + else if path is --type file $file_or_dir + echo $(__scriptura_desc $file_or_dir) + else + echo "Unknown type" + end +end +