shoestrap/assets/default/oh-my-fish/pkg/force/completions/force.fish
ViViDboarder 028d0a56a0 Add support for both omf and fisherman
omf seems a bit janky at times. Giving fisherman a shot
2016-02-11 17:17:28 -08:00

24 lines
685 B
Fish

function __fish_force_needs_command
set cmd (commandline -opc)
if [ (count $cmd) -eq 1 -a $cmd[1] = 'force' ]
return 0
end
return 1
end
function __fish_force_using_command
set cmd (commandline -opc)
if [ (count $cmd) -gt 1 ]
if [ $argv[1] = $cmd[2] ]
return 0
end
end
return 1
end
complete -f -c force -n '__fish_force_needs_command' -a login -d 'Log into an environment'
complete -f -c force -n '__fish_force_using_command login' -a '-i' -d 'Specify environment'
complete -f -c force -n '__fish_force_needs_command' -a push -d 'Push a change to Salesforce'
complete -f -c force -n '__fish_force_needs_command' -a test -d 'Run specified test name'