2013-06-02 13:26:36 +00:00
|
|
|
function __fish_canto_using_command
|
2024-01-22 06:42:45 +00:00
|
|
|
set -l cmd (commandline -xpc)
|
2021-11-23 13:45:28 +00:00
|
|
|
if test (count $cmd) -gt 1
|
|
|
|
if test $argv[1] = $cmd[2]
|
2019-05-05 10:53:09 +00:00
|
|
|
return 0
|
|
|
|
end
|
2021-11-23 13:45:28 +00:00
|
|
|
if test count $argv -gt 2
|
|
|
|
if test $argv[2] = $cmd[2]
|
2019-05-05 10:53:09 +00:00
|
|
|
return 0
|
|
|
|
end
|
|
|
|
end
|
2013-06-02 13:26:36 +00:00
|
|
|
end
|
2019-05-05 10:53:09 +00:00
|
|
|
return 1
|
2013-06-02 13:26:36 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
complete -f -c canto -s h -l help -d 'Show Help'
|
|
|
|
complete -f -c canto -s v -l version -d 'Show version'
|
|
|
|
complete -f -c canto -s u -l update -d 'Update before running'
|
|
|
|
complete -f -c canto -s l -l list -d 'List feeds'
|
|
|
|
complete -f -c canto -s a -l checkall -d 'Show number of new items'
|
|
|
|
|
|
|
|
complete -f -c canto -s n -l checknew -d 'Show number of new items for feed'
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -f -c canto -n '__fish_canto_using_command -l --checknew' -d Feed -a '(command canto -l)'
|
2013-06-02 13:26:36 +00:00
|
|
|
|
|
|
|
complete -c canto -s o -l opml -d 'Print conf as OPML'
|
2019-08-04 09:53:17 +00:00
|
|
|
complete -c canto -s i -l import -d 'Import from OPML'
|
2013-06-02 13:26:36 +00:00
|
|
|
complete -f -c canto -s r -l url -d 'Add feed'
|
|
|
|
|
|
|
|
complete -c canto -s D -l dir -d 'Set configuration directory'
|
|
|
|
complete -c canto -s C -l conf -d 'Set configuration file'
|
|
|
|
complete -c canto -s L -l log -d 'Set client log file'
|
|
|
|
complete -c canto -s F -l fdir -d 'Set feed directory'
|
2013-07-19 07:28:05 +00:00
|
|
|
complete -c canto -s S -l sdir -d 'Set script directory'
|