mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-27 13:18:02 +03:00
12 lines
351 B
Fish
12 lines
351 B
Fish
function tide -a subcommand
|
|
set -l tideSubcommand "tide_$subcommand"
|
|
set -l tideCommands (basename -a -s '.fish' $_tide_dir/functions/*)
|
|
|
|
if contains $subcommand $tideCommands
|
|
source "$_tide_dir/functions/$subcommand.fish"
|
|
$tideSubcommand $argv[2..-1]
|
|
else
|
|
tide help
|
|
end
|
|
functions -e $tideSubcommand
|
|
end |