oh-my-fish/pkg/omf/functions/cli/omf.cli.channel.fish

15 lines
263 B
Fish
Raw Normal View History

function omf.cli.channel
switch (count $argv)
case 0
omf.channel.get
case 1
omf.channel.set $argv
case '*'
2016-12-18 10:26:46 +08:00
echo (omf::err)"Invalid number of arguments"(omf::off) >&2
omf help channel
return $OMF_INVALID_ARG
end
end