all repos — scriptura @ 5eb7c15d14f3eb6b95b4427e818459d027d2f0d1

a corner in $HOME for your scripts

allow users to write their own subcommands

Alin
commit

5eb7c15d14f3eb6b95b4427e818459d027d2f0d1

parent

e9bf47b59387168b9370ec60e84c4c3d0aeebc49

1 file changed, 8 insertions(+), 1 deletion(-)

changed files
M functions/__scriptura_subcommands.fishfunctions/__scriptura_subcommands.fish
@@ -1,3 +1,10 @@
function __scriptura_subcommands --description 'List available subcommands' - path basename $(path filter --type file,dir --perm exec $SCRIPTURA_ROOT/*) + set --local from $SCRIPTURA_ROOT + for arg in $argv + if path is --type dir $from/$arg + set --function from $from/$arg + end + end + + path basename $(path filter --type file,dir --perm exec $from/*) end