re-work to use subcommands instead of flags
1 file changed, 12 insertions(+), 0 deletions(-)
changed files
A functions/__scriptura_run.fish
@@ -0,0 +1,12 @@ +function __scriptura_run --argument-names target + if path is --perm exec $target + set --export SCRIPTURA_ROOT $SCRIPTURA_ROOT + set --export SD (path dirname $target) + $target $argv[2..] + return $status + else + echo "scriptura: $target is not executable" >&2 + __scriptura_cat $target + return $status + end +end