fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
809ecb39e
master
1function __fish_moss_available_packages 2moss la2> /dev/null| string replace -rf'^([^ ]+) +[^ ]+ - ' '$1\t' 3end 4 5function __fish_moss_installed_packages 6moss li2> /dev/null| string replace -rf'^([^ ]+) +[^ ]+ - ' '$1\t' 7end 8 9set -l commands boot cache extract fetch fe index ix info inspect install it list li la ls lu remove rm repo ar lr rr ur er dr search sr search-file sf state sync up version help 10 11complete -c moss -f 12complete -c moss -n"not __fish_seen_subcommand_from $commands " -a boot -d'Boot management' 13complete -c moss -n"not __fish_seen_subcommand_from $commands " -a cache -d'Manage cached data' 14complete -c moss -n"not __fish_seen_subcommand_from $commands " -a extract -d'Extract a `.stone` content to disk' 15complete -c moss -n"not __fish_seen_subcommand_from $commands " -a'fetch fe' -d'Fetch package(s)' 16complete -c moss -n"not __fish_seen_subcommand_from $commands " -a'index ix' -d'Index a collection of packages' 17complete -c moss -n"not __fish_seen_subcommand_from $commands " -a info -d'Query packages' 18complete -c moss -n"not __fish_seen_subcommand_from $commands " -a inspect -d'Examine raw stone files' 19complete -c moss -n"not __fish_seen_subcommand_from $commands " -a'install it' -d'Install packages' 20complete -c moss -n"not __fish_seen_subcommand_from $commands " -a list -d'List packages' 21complete -c moss -n"not __fish_seen_subcommand_from $commands " -a li -d'List all installed packages' 22complete -c moss -n"not __fish_seen_subcommand_from $commands " -a la -d'List all available packages' 23complete -c moss -n"not __fish_seen_subcommand_from $commands " -a'ls lu' -d'List packages with sync changes' 24complete -c moss -n"not __fish_seen_subcommand_from $commands " -a'remove rm' -d'Remove packages' 25complete -c moss -n"not __fish_seen_subcommand_from $commands " -a repo -d'Manage software repositories' 26complete -c moss -n"not __fish_seen_subcommand_from $commands " -a ar -d'Add a repository for the system' 27complete -c moss -n"not __fish_seen_subcommand_from $commands " -a lr -d'List system software repositories' 28complete -c moss -n"not __fish_seen_subcommand_from $commands " -a rr -d'Remove a repository for the system' 29complete -c moss -n"not __fish_seen_subcommand_from $commands " -a ur -d'Update the system repositories' 30complete -c moss -n"not __fish_seen_subcommand_from $commands " -a er -d'Enable the system repositories' 31complete -c moss -n"not __fish_seen_subcommand_from $commands " -a dr -d'Disable the system repositories' 32complete -c moss -n"not __fish_seen_subcommand_from $commands " -a'search sr' -d'Search packages' 33complete -c moss -n"not __fish_seen_subcommand_from $commands " -a'search-file sf' -d'Search files' 34complete -c moss -n"not __fish_seen_subcommand_from $commands " -a state -d'Manage state' 35complete -c moss -n"not __fish_seen_subcommand_from $commands " -a'sync up' -d'Sync packages' 36complete -c moss -n"not __fish_seen_subcommand_from $commands " -a version -d'Display version and exit' 37complete -c moss -n"not __fish_seen_subcommand_from $commands " -a help -d'Print this message or the help of the given subcommand(s)' 38 39complete -c moss -s v -l verbose -d'Prints additional information about what moss is doing' 40complete -c moss -s V -l version -d'Prints version information about the binary' 41complete -c moss -s D -l directory -d'Root directory' 42complete -c moss -l cache -d'Cache directory' 43complete -c moss -l log -d'Logging configuration' 44complete -c moss -s y -l yes-all -d'Assume yes for all questions' 45complete -c moss -n'not __fish_seen_subcommand_from help' -s h -l help -d'Print help' 46 47complete -c moss -n"__fish_seen_subcommand_from boot" -a status -d'Status of boot configuration' 48complete -c moss -n"__fish_seen_subcommand_from boot" -a sync -d'Synchronize boot configuration' 49complete -c moss -n"__fish_seen_subcommand_from boot" -a help -d'Print this message or the help of the given subcommand(s)' 50 51complete -c moss -n"__fish_seen_subcommand_from cache" -a prune -d'Prune cached artefacts' 52complete -c moss -n"__fish_seen_subcommand_from cache" -a help -d'Print this message or the help of the given subcommand(s)' 53 54complete -c moss -n'__fish_seen_subcommand_from extract' -F 55complete -c moss -n'__fish_seen_subcommand_from extract' -s o -l output-dir -r -F -d'Directory to extract the stone(s) to' 56 57complete -c moss -n'__fish_seen_subcommand_from fetch fe' -a'(__fish_moss_available_packages)' 58complete -c moss -n'__fish_seen_subcommand_from fetch fe' -s o -l output-dir -r -F -d'Directory to extract the stone(s) to' 59 60complete -c moss -n'__fish_seen_subcommand_from index ix' -F 61complete -c moss -n'__fish_seen_subcommand_from index ix' -s o -l output-dir -r -F -d'Directory to write the stone.index' 62 63complete -c moss -n'__fish_seen_subcommand_from info' -a'(__fish_moss_available_packages)' 64complete -c moss -n'__fish_seen_subcommand_from info' -s f -l files -d'Show files provided by package' 65 66complete -c moss -n'__fish_seen_subcommand_from inspect' -F 67complete -c moss -n'__fish_seen_subcommand_from inspect' -l check -d'Check the integrity of the stone file(s)' 68complete -c moss -n'__fish_seen_subcommand_from inspect' -s q -l quiet -d'Suppress output, only exit status indicates success or failure (requires --check)' 69 70complete -c moss -n'__fish_seen_subcommand_from install it' -a'(__fish_moss_available_packages)' 71complete -c moss -n'__fish_seen_subcommand_from install it' -l dry-run -d'Simulate the operation (dry-run)' 72complete -c moss -n'__fish_seen_subcommand_from install it' -l to -r -F -d'Blit this sync to the provided directory instead of the root' 73 74complete -c moss -n"__fish_seen_subcommand_from list" -a installed -d'List all installed packages' 75complete -c moss -n"__fish_seen_subcommand_from list; and __fish_seen_subcommand_from installed; or __fish_seen_subcommand_from li" -s e -l explicit -d'List explicit packages only' 76complete -c moss -n"__fish_seen_subcommand_from list" -a available -d'List all available packages' 77complete -c moss -n"__fish_seen_subcommand_from list" -a sync -d'List packages with sync changes' 78complete -c moss -n"__fish_seen_subcommand_from list; and __fish_seen_subcommand_from sync; or __fish_seen_subcommand_from ls" -l upgrade-only -d'Only sync packages that have a version upgrade' 79 80complete -c moss -n"__fish_seen_subcommand_from remove rm" -a'(__fish_moss_installed_packages)' 81complete -c moss -n'__fish_seen_subcommand_from remove rm' -l dry-run -d'Simulate the operation (dry-run)' 82 83complete -c moss -n"__fish_seen_subcommand_from repo" -a add -d'Add a repository for the system' 84complete -c moss -n"__fish_seen_subcommand_from repo; and __fish_seen_subcommand_from add; or __fish_seen_subcommand_from ar" -s c -r -d'Set the comment for the repository' 85complete -c moss -n"__fish_seen_subcommand_from repo; and __fish_seen_subcommand_from add; or __fish_seen_subcommand_from ar" -s p -r -d'Repository priority' 86complete -c moss -n"__fish_seen_subcommand_from repo" -a list -d'List system software repositories' 87complete -c moss -n"__fish_seen_subcommand_from repo" -a remove -d'Remove a repository for the system' 88complete -c moss -n"__fish_seen_subcommand_from repo" -a update -d'Update the system repositories' 89complete -c moss -n"__fish_seen_subcommand_from repo" -a enable -d'Enable the system repositories' 90complete -c moss -n"__fish_seen_subcommand_from repo" -a disable -d'Disable the system repositories' 91complete -c moss -n"__fish_seen_subcommand_from repo" -a help -d'Print this message or the help of the given subcommand(s)' 92 93complete -c moss -n'__fish_seen_subcommand_from search sr' -s i -l installed -d'Search among installed packages only' 94complete -c moss -n'__fish_seen_subcommand_from search sr' -s p -l provides -r -a'library name soname pkgconfig interpreter cmake python binary sysbinary pkgconfig32' -f -d'Search for packages by provider' 95 96complete -c moss -n"__fish_seen_subcommand_from search-file sf" -F 97 98complete -c moss -n"__fish_seen_subcommand_from state" -a active -d'List the active state' 99complete -c moss -n"__fish_seen_subcommand_from state" -a list -d'List all states' 100complete -c moss -n"__fish_seen_subcommand_from state" -a activate -d'Activate a state' 101complete -c moss -n"__fish_seen_subcommand_from state; and __fish_seen_subcommand_from activate" -l skip-triggers -d'Do not run triggers on activation' 102complete -c moss -n"__fish_seen_subcommand_from state; and __fish_seen_subcommand_from activate" -l skip-boot -d'Do not sync boot on activation' 103complete -c moss -n"__fish_seen_subcommand_from state" -a query -d'Query information for a state' 104complete -c moss -n"__fish_seen_subcommand_from state" -a prune -d'Prune archived states' 105complete -c moss -n"__fish_seen_subcommand_from state; and __fish_seen_subcommand_from prune" -s k -l keep -d'Keep this many states' 106complete -c moss -n"__fish_seen_subcommand_from state; and __fish_seen_subcommand_from prune" -l include-newer -d'Include states newer than the active state when pruning' 107complete -c moss -n"__fish_seen_subcommand_from state" -a remove -d'Remove archived state(s)' 108complete -c moss -n"__fish_seen_subcommand_from state" -a verify -d'Verify and fix system states and assets' 109complete -c moss -n"__fish_seen_subcommand_from state" -a export -d'Export a state as a system-model.kdl file' 110complete -c moss -n"__fish_seen_subcommand_from state; and __fish_seen_subcommand_from export" -s o -l output -r -f -d'Export to the provided path' 111complete -c moss -n"__fish_seen_subcommand_from state" -a help -d'Print this message or the help of the given subcommand(s)' 112 113complete -c moss -n"__fish_seen_subcommand_from sync up" -s u -l update -d'Update repositories before syncing' 114complete -c moss -n'__fish_seen_subcommand_from sync up' -l to -r -F -d'Blit this sync to the provided directory instead of the root' 115complete -c moss -n'__fish_seen_subcommand_from sync up' -l dry-run -d'Simulate the sync (dry-run)' 116complete -c moss -n'__fish_seen_subcommand_from sync up' -l import -r -f -d'Sync against the provided system-model.kdl'