tide/functions/tide.fish

15 lines
308 B
Fish
Raw Normal View History

2020-06-07 03:51:24 +03:00
function tide
argparse --stop-nonopt 'v/version' -- $argv
2020-06-07 03:51:24 +03:00
set -l subcommand $argv[1]
if set -q _flag_version
printf '%s\n' $_tide_version
return 0
end
if functions -q _tide_sub_$subcommand
_tide_sub_$subcommand $argv[2..-1]
2020-05-19 06:03:25 +03:00
else
tide help
end
end