tide/functions/tide.fish

12 lines
334 B
Fish
Raw Normal View History

2020-05-19 06:03:25 +03:00
function tide -a subcommand
set -l tideSubcommand "tide_$subcommand"
set -l tideCommands 'configure' 'uninstall' 'help'
if contains $subcommand $tideCommands
2020-05-20 20:39:44 +03:00
source "$_tide_dir/functions/$subcommand.fish"
2020-05-19 06:03:25 +03:00
$tideSubcommand $argv[2..-1]
else
tide help
end
functions -e $tideSubcommand
end