all repos — scriptura @ v0.3.1

a corner in $HOME for your scripts

functions/__scriptura_desc.fish (view raw)

1
2
3
function __scriptura_desc --description 'Extract description from script file' --argument-names file
    string match --groups-only --regex '^#\s*([^!].*)$' <$file | string join "\n"
end