fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
b75e5ee82
master
1#completion for opkg 2 3function __fish_opkg_no_subcommand -d'Test if opkg has yet to be given the subcommand' 4for iin ( commandline -xpc) 5if contains --$i update upgrade install configure remove flag list list-installed list-upgradable list-changed-conffiles files search find info status download compare-versions print-architecture depends whatdepends whatdependsrec whatrecommends whatsuggests whatprovides whatconflicts whatreplaces 6return 1 7end 8end 9return 0 10end 11 12function __fish_opkg_use_package -d'Test if opkg command should have packages as potential completion' 13for iin ( commandline -xpc) 14if contains --$i contains install search find info status download compare-versions print-architecture depends whatdepends whatdependsrec whatrecommends whatsuggests whatprovides whatconflicts whatreplaces 15return 0 16end 17end 18return 1 19end 20 21function __fish_opkg_use_package_installed -d'Test if opkg command should have installed packages as potential completion' 22for iin ( commandline -xpc) 23if contains --$i contains upgrade configure remove flag files 24return 0 25end 26end 27return 1 28end 29 30complete -c opkg -n __fish_opkg_use_package -a'(__fish_print_opkg_packages)' -d Package 31 32complete -c opkg -n __fish_opkg_use_package_installed -a'(__fish_print_opkg_packages --installed)' -d Package 33 34complete -f -n __fish_opkg_no_subcommand -c opkg -a update -d'Update list of available packages' 35complete -f -n __fish_opkg_no_subcommand -c opkg -a upgrade -d'Upgrade packages' 36complete -f -n __fish_opkg_no_subcommand -c opkg -a install -d'Install package(s)' 37complete -f -n __fish_opkg_no_subcommand -c opkg -a configure -d'Configure unpacked package(s)' 38complete -f -n __fish_opkg_no_subcommand -c opkg -a remove -d'Remove package(s)' 39complete -f -n __fish_opkg_no_subcommand -c opkg -a flag -d'Flag package(s)' 40complete -f -n __fish_opkg_no_subcommand -c opkg -a list -d'List available packages' 41complete -f -n __fish_opkg_no_subcommand -c opkg -a list-installed -d'List installed packages' 42complete -f -n __fish_opkg_no_subcommand -c opkg -a list-upgradable -d'List installed and upgradable packages' 43complete -f -n __fish_opkg_no_subcommand -c opkg -a list-changed-conffiles -d'List user modified configuration files' 44complete -f -n __fish_opkg_no_subcommand -c opkg -a files -d'List files belonging to <pkg>' 45complete -f -n __fish_opkg_no_subcommand -c opkg -a search -d'List package providing <file>' 46complete -f -n __fish_opkg_no_subcommand -c opkg -a find -d'List packages whose name or description matches <regexp>' 47complete -f -n __fish_opkg_no_subcommand -c opkg -a info -d'Display all info for <pkg>' 48complete -f -n __fish_opkg_no_subcommand -c opkg -a status -d'Display all status for <pkg>' 49complete -f -n __fish_opkg_no_subcommand -c opkg -a download -d'Download <pkg> to current directory' 50complete -f -n __fish_opkg_no_subcommand -c opkg -a compare-versions -d'compare versions using <= < > >= = << >>' 51complete -f -n __fish_opkg_no_subcommand -c opkg -a print-architecture -d'List installable package architectures' 52complete -f -n __fish_opkg_no_subcommand -c opkg -a depends -d'list depends' 53complete -f -n __fish_opkg_no_subcommand -c opkg -a whatdepends -d'list whatdepends' 54complete -f -n __fish_opkg_no_subcommand -c opkg -a whatdependsrec -d'list whatdepends recursively' 55complete -f -n __fish_opkg_no_subcommand -c opkg -a whatrecommends -d'list whatrecommends' 56complete -f -n __fish_opkg_no_subcommand -c opkg -a whatsuggests -d'list whatsuggests' 57complete -f -n __fish_opkg_no_subcommand -c opkg -a whatprovides -d'list whatprovides' 58complete -f -n __fish_opkg_no_subcommand -c opkg -a whatconflicts -d'list whatconflicts' 59complete -f -n __fish_opkg_no_subcommand -c opkg -a whatreplaces -d'list whatreplaces' 60 61complete -c opkg -s A -d'Query all packages not just those installed' 62complete -c opkg -s V -l verbosity -d'Set verbosity level to <level>' 63complete -c opkg -s f -l conf -d'Use <conf_file> as the opkg configuration file' 64complete -c opkg -l cache -d'Use a package cache' 65complete -c opkg -s d -l dest -d'Use <dest_name> as the root directory' 66complete -c opkg -s o -l offline-root -d'Use <dir> as the root directory for offline' 67complete -c opkg -l add-arch -d'Register architecture with given priority' 68complete -c opkg -l add-dest -d'Register destination with given path' 69 70complete -c opkg -l force-depends -d'Install/remove despite failed dependencies' 71complete -c opkg -l force-maintainer -d'Overwrite preexisting config files' 72complete -c opkg -l force-reinstall -d'Reinstall package(s)' 73complete -c opkg -l force-overwrite -d'Overwrite files from other package(s)' 74complete -c opkg -l force-downgrade -d'Allow opkg to downgrade packages' 75complete -c opkg -l force-space -d'Disable free space checks' 76complete -c opkg -l force-postinstall -d'Run postinstall scripts even in offline mode' 77complete -c opkg -l force-remove -d'Remove package even if prerm script fails' 78complete -c opkg -l force-checksum -d'Don\'t fail on checksum mismatches' 79complete -c opkg -l noaction -d'No action -- test only' 80complete -c opkg -l download-only -d'No action -- download only' 81complete -c opkg -l nodeps -d'Do not follow dependencies' 82complete -c opkg -l nocase -d'Perform case insensitive pattern matching' 83complete -c opkg -l size -d'Print package size when listing available packages' 84complete -c opkg -l force-removal-of-dependent-packages -d'Remove package and all dependencies' 85complete -c opkg -l autoremove -d'Remove automatically installed packages' 86complete -c opkg -s t -l tmp-dir -d'Specify tmp-dir.' 87complete -c opkg -s l -l lists-dir -d'Specify lists-dir.'