fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
4a12d5771
master
1# Completions for the meson build system (http://mesonbuild.com/) 2 3function __fish_meson_needs_command 4set -l cmd( commandline -xpc) 5set -e cmd[ 1 ] 6argparse -s v/version --$cmd 2> /dev/null 7or return 0 8not set -q argv[ 1 ] 9end 10 11function __fish_meson_using_command 12set -l cmd( commandline -xpc) 13set -e cmd[ 1 ] 14test ( count $cmd ) -eq 0 15and return 1 16contains --$cmd [ 1 ] $argv 17and return 0 18end 19 20function __fish_meson_builddir 21# Consider the value of -C option to detect the build directory 22set -l cmd( commandline -xpc) 23argparse -u'C=' --$cmd 24if set -q _flag_C 25echo $_flag_C 26else 27echo . 28end 29end 30 31function __fish_meson_targets 32set -l python( __fish_anypython ) ;or return 33meson introspect --targets( __fish_meson_builddir ) | $python -S -c'import json, sys 34data = json.load(sys.stdin) 35targets = set() 36for target in data: 37targets.add(target["name"]) 38for name in targets: 39print(name)' 2> /dev/null 40end 41 42function __fish_meson_subprojects 43set -l python( __fish_anypython ) ;or return 44meson introspect --projectinfo( __fish_meson_builddir ) | $python -S -c'import json, sys 45data = json.load(sys.stdin) 46for subproject in data["subprojects"]: 47print(subproject["name"])' 2> /dev/null 48end 49 50function __fish_meson_tests 51# --list option shows suites in a short form, e.g. if a test "gvariant" 52# is present both in "glib:glib" and "glib:slow" suites, it will be shown 53# in a list as "glib:glib+slow / gvariant". So, just filter out the first 54# part and list all of the test names. 55meson test -C( __fish_meson_builddir ) --no-rebuild --list| string split -r -f1' / ' 56end 57 58function __fish_meson_test_suites 59set -l python( __fish_anypython ) ;or return 60meson introspect --tests( __fish_meson_builddir ) | $python -S -c'import json, sys 61data = json.load(sys.stdin) 62suites = set() 63for test in data: 64suites.update(test["suite"]) 65for name in suites: 66print(name)' 2> /dev/null 67end 68 69function __fish_meson_help_commands 70meson help --help| string match -g -r'^ *{(.*)}' | string split , 71end 72 73# Each meson command and subcommand has -h/--help option 74complete -c meson -s h -l help -d'Show help' 75 76# In order to prevent directory completions from being mixed in with subcommand completions, 77# we need to use -kxa instead of -xa and make sure we do the directory completions first. 78# In order for subcommands to be sorted alphabetically, we need to make sure that we compose 79# them in the reverse alphabetical order and use -kxa there as well. 80 81# This is to support the implicit setup/configure mode, deprecated upstream but not yet removed. 82complete -c meson -n __fish_meson_needs_command -kxa'(__fish_complete_directories)' 83 84### wrap 85set -l wrap_cmds list search install update info status promote update-db 86complete -c meson -n __fish_meson_needs_command -kxa wrap -d'Manage WrapDB dependencies' 87complete -c meson -n"__fish_meson_using_command wrap; and not __fish_seen_subcommand_from $wrap_cmds " -xa' 88list\t"Show all available projects" 89search\t"Search the db by name" 90install\t"Install the specified project" 91update\t"Update wrap files from WrapDB" 92info\t"Show available versions of a project" 93status\t"Show installed and available versions of your projects" 94promote\t"Bring a subsubproject up to the master project" 95update-db\t"Update list of projects available in WrapDB" 96' 97complete -c meson -n"__fish_meson_using_command wrap; and __fish_seen_subcommand_from $wrap_cmds " -l allow-insecure -d'Allow insecure server connections' 98complete -c meson -n'__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l force -d'Update wraps that does not seems to come from WrapDB' 99complete -c meson -n'__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l sourcedir -xa'(__fish_complete_directories)' -d'Source directory' 100complete -c meson -n'__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l types -x -d'Comma-separated list of subproject types' 101complete -c meson -n'__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l num-processes -x -d'How many parallel processes to use' 102complete -c meson -n'__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l allow-insecure -x -d'Allow insecure server connections' 103complete -c meson -n'__fish_meson_using_command wrap; and __fish_seen_subcommand_from promote' -xa'(__fish_complete_directories)' -d'Project path' 104 105### test 106complete -c meson -n __fish_meson_needs_command -kxa test -d'Run tests for the project' 107# TODO: meson allows to pass just "testname" to run all tests with that name, 108# or "subprojname:testname" to run "testname" from "subprojname", 109# or "subprojname:" to run all tests defined by "subprojname", 110# but completion is only handled for the "testname". 111complete -c meson -n'__fish_meson_using_command test' -xa'(__fish_meson_tests)' 112complete -c meson -n'__fish_meson_using_command test' -s h -l help -d'Show help' 113complete -c meson -n'__fish_meson_using_command test' -s C -xa'(__fish_complete_directories)' -d'Directory to cd into before running' 114complete -c meson -n'__fish_meson_using_command test' -l maxfail -x -d'Number of failing tests before aborting the test run' 115complete -c meson -n'__fish_meson_using_command test' -l repeat -x -d'Number of times to run the tests' 116complete -c meson -n'__fish_meson_using_command test' -l no-rebuild -d'Do not rebuild before running tests' 117complete -c meson -n'__fish_meson_using_command test' -l gdb -d'Run test under gdb' 118complete -c meson -n'__fish_meson_using_command test' -l gdb-path -r -d'Run test under gdb' 119complete -c meson -n'__fish_meson_using_command test' -l list -d'List available tests' 120complete -c meson -n'__fish_meson_using_command test' -l wrapper -r -d'Wrapper to run tests with (e.g. valgrind)' 121complete -c meson -n'__fish_meson_using_command test' -l suite -xa'(__fish_meson_test_suites)' -d'Only run tests belonging to the given suite' 122complete -c meson -n'__fish_meson_using_command test' -l no-suite -xa'(__fish_meson_test_suites)' -d'Do not run tests belonging to the given suite' 123complete -c meson -n'__fish_meson_using_command test' -l no-stdsplit -d'Do not split stderr and stdout in test logs' 124complete -c meson -n'__fish_meson_using_command test' -l print-errorlogs -d'Print logs of failing tests' 125complete -c meson -n'__fish_meson_using_command test' -l benchmark -d'Run benchmarks instead of tests' 126complete -c meson -n'__fish_meson_using_command test' -l logbase -x -d'Base name for log file' 127complete -c meson -n'__fish_meson_using_command test' -l num-processes -x -d'How many parallel processes to use' 128complete -c meson -n'__fish_meson_using_command test' -s v -l verbose -d'Do not redirect stdout and stderr' 129complete -c meson -n'__fish_meson_using_command test' -s q -l quiet -d'Produce less output to the terminal' 130complete -c meson -n'__fish_meson_using_command test' -s t -l timeout-multiplier -x -d'Multiplier for test timeout' 131complete -c meson -n'__fish_meson_using_command test' -l setup -x -d'Which test setup to use' 132complete -c meson -n'__fish_meson_using_command test' -l test-args -x -d'Arguments to pass to the test(s)' 133 134### subprojects 135set -l subprojects_cmds update checkout download foreach purge packagefiles 136complete -c meson -n __fish_meson_needs_command -kxa subprojects -d'Manage subprojects' 137complete -c meson -n"__fish_meson_using_command subprojects; and not __fish_seen_subcommand_from $subprojects_cmds " -xa' 138update\t"Update all subprojects" 139checkout\t"Checkout a branch (git only)" 140download\t"Ensure subprojects are fetched" 141foreach\t"Execute a command in each subproject" 142purge\t"Remove all wrap-based subproject artifacts" 143packagefiles\t"Manage the packagefiles overlay" 144' 145complete -c meson -n"__fish_meson_using_command subprojects; and __fish_seen_subcommand_from $subprojects_cmds " -l sourcedir -xa'(__fish_complete_directories)' -d'Path to source directory' 146complete -c meson -n"__fish_meson_using_command subprojects; and __fish_seen_subcommand_from $subprojects_cmds " -l types -xa'file git hg svn' -d'Comma-separated list of subproject types' 147complete -c meson -n"__fish_meson_using_command subprojects; and __fish_seen_subcommand_from $subprojects_cmds " -l num-processes -x -d'How many parallel processes to use' 148complete -c meson -n"__fish_meson_using_command subprojects; and __fish_seen_subcommand_from $subprojects_cmds " -l allow-insecure -x -d'Allow insecure server connections' 149complete -c meson -n'__fish_meson_using_command subprojects; and __fish_seen_subcommand_from update' -l reset -d'Checkout wrap\'s revision and hard reset to that commit' 150complete -c meson -n'__fish_meson_using_command subprojects; and __fish_seen_subcommand_from checkout' -s b -d'Create a new branch' 151complete -c meson -n'__fish_meson_using_command subprojects; and __fish_seen_subcommand_from purge' -l include-cache -d'Remove the package cache as well' 152complete -c meson -n'__fish_meson_using_command subprojects; and __fish_seen_subcommand_from purge' -l confirm -d'Confirm the removal of subproject artifacts' 153complete -c meson -n'__fish_meson_using_command subprojects; and __fish_seen_subcommand_from packagefiles' -l apply -d'Apply packagefiles to the subproject' 154complete -c meson -n'__fish_meson_using_command subprojects; and __fish_seen_subcommand_from packagefiles' -l save -d'Save packagefiles from the subproject' 155 156### setup 157complete -c meson -n __fish_meson_needs_command -kxa setup -d'Configure a build directory' 158# All of the setup options are also exposed to the global scope 159# Use -k here for one of the cases to make sure directories come after any other top-level completions 160complete -c meson -n'__fish_meson_using_command setup' -xa'(__fish_complete_directories)' 161# A lot of options are shared for "setup" and "configure" commands 162complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l prefix -xa'(__fish_complete_directories)' -d'Installation prefix' 163complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l bindir -xa'(__fish_complete_directories)' -d'Executable directory' 164complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l datadir -xa'(__fish_complete_directories)' -d'Data file directory' 165complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l includedir -xa'(__fish_complete_directories)' -d'Header file directory' 166complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l infodir -xa'(__fish_complete_directories)' -d'Info page directory' 167complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l libdir -xa'(__fish_complete_directories)' -d'Library directory' 168complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l licensedir -xa'(__fish_complete_directories)' -d'Licenses directory' 169complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l libexecdir -xa'(__fish_complete_directories)' -d'Library executable directory' 170complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l localedir -xa'(__fish_complete_directories)' -d'Locale data directory' 171complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l localstatedir -xa'(__fish_complete_directories)' -d'Localstate data directory' 172complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l mandir -xa'(__fish_complete_directories)' -d'Manual page directory' 173complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l sbindir -xa'(__fish_complete_directories)' -d'System executable directory' 174complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l sharedstatedir -xa'(__fish_complete_directories)' -d'Architecture-independent data directory' 175complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l sysconfdir -xa'(__fish_complete_directories)' -d'Sysconf data directory' 176complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l auto-features -xa'enabled disabled auto' -d'Override value of all "auto" features' 177complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l backend -xa'ninja vs vs2010 vs2012 vs2013 vs2015 vs2017 vs2019 vs2022 xcode' -d'Backend to use' 178complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l buildtype -xa'plain debug debugoptimized release minsize custom' -d'Build type to use' 179complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l debug -d'Enable debug symbols and other info' 180complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l default-library -xa'shared static both' -d'Default library type' 181complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l errorlogs -d'Print the logs from failing tests' 182complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l install-umask -x -d'Default umask to apply on permissions of installed files' 183complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l layout -xa'mirror flat' -d'Build directory layout' 184complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l optimization -xa'plain 0 g 1 2 3 s' -d'Optimization level' 185complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l prefer-static -d'Try static linking before shared linking' 186complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l stdsplit -d'Split stdout and stderr in test logs' 187complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l strip -d'Strip targets on install' 188complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l unity -xa'on off subprojects' -d'Unity build' 189complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l unity-size -x -d'Unity block size' 190complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l warnlevel -xa'0 1 2 3 everything' -d'Compiler warning level to use' 191complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l werror -d'Treat warnings as errors' 192complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l wrap-mode -xa'default nofallback nodownload forcefallback nopromote' -d'Wrap mode' 193complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l force-fallback-for -x -d'Force fallback for those subprojects' 194complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l pkgconfig.relocatable -d'Generate pkgconfig files as relocatable' 195complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l python.install-env -xa'auto prefix system venv' -d'Which python environment to install to' 196complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l python.platlibdir -x -d'Directory for site-specific, platform-specific files' 197complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l python.purelibdir -x -d'Directory for site-specific, non-platform-specific files' 198complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l pkg-config-path -x -d'Additional paths for pkg-config (for host machine)' 199complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l build.pkg-config-path -x -d'Additional paths for pkg-config (for build machine)' 200complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l cmake-prefix-path -x -d'Additional prefixes for cmake (for host machine)' 201complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -l build.cmake-prefix-path -x -d'Additional prefixes for cmake (for build machine)' 202complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup configure' -s D -x -d'Set the value of an option' 203complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup' -l native-file -r -d'File with overrides for native compilation environment' 204complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup' -l cross-file -r -d'File describing cross compilation environment' 205complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup' -l vsenv -d'Force setup of Visual Studio environment' 206complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup' -s v -l version -d'Show version number and exit' 207complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup' -l fatal-meson-warnings -d'Make all Meson warnings fatal' 208complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup' -l reconfigure -d'Set options and reconfigure the project' 209complete -c meson -n'__fish_meson_needs_command || __fish_meson_using_command setup' -l wipe -d'Wipe build directory and reconfigure' 210 211### rewrite 212set -l rewrite_cmds target kwargs default-options command 213complete -c meson -n __fish_meson_needs_command -kxa rewrite -d'Modify the project' 214complete -c meson -n"__fish_meson_using_command rewrite; and not __fish_seen_subcommand_from $rewrite_cmds " -s s -l sourcedir -xa'(__fish_complete_directories)' -d'Path to source directory' 215complete -c meson -n"__fish_meson_using_command rewrite; and not __fish_seen_subcommand_from $rewrite_cmds " -s V -l verbose -d'Enable verbose output' 216complete -c meson -n"__fish_meson_using_command rewrite; and not __fish_seen_subcommand_from $rewrite_cmds " -s S -l skip-errors -d'Skip errors instead of aborting' 217complete -c meson -n"__fish_meson_using_command rewrite; and not __fish_seen_subcommand_from $rewrite_cmds " -xa' 218target\t"Modify a target" 219kwargs\t"Modify keyword arguments" 220default-options\t"Modify the project default options" 221command\t"Execute a JSON array of commands" 222' 223# TODO: "meson rewrite target" completions are incomplete and hard to implement properly 224complete -c meson -n'__fish_meson_using_command rewrite; and __fish_seen_subcommand_from target' -s s -l subdir -xa'(__fish_complete_directories)' -d'Subdirectory of the new target' 225complete -c meson -n'__fish_meson_using_command rewrite; and __fish_seen_subcommand_from target' -l type -d'Type of the target to add' \ 226 -xa'both_libraries executable jar library shared_library shared_module static_library' 227complete -c meson -n'__fish_meson_using_command rewrite; and __fish_seen_subcommand_from kwargs; and __fish_is_nth_token 3' -xa'set delete add remove remove_regex info' -d'Action to execute' 228complete -c meson -n'__fish_meson_using_command rewrite; and __fish_seen_subcommand_from kwargs; and __fish_is_nth_token 4' -xa'dependency target project' -d'Function type to modify' 229complete -c meson -n'__fish_meson_using_command rewrite; and __fish_seen_subcommand_from default-options; and __fish_is_nth_token 3' -xa'set delete' -d'Action to execute' 230 231### introspect 232complete -c meson -n __fish_meson_needs_command -kxa introspect -d'Display info about a project' 233complete -c meson -n'__fish_meson_using_command introspect' -xa'(__fish_complete_directories)' 234complete -c meson -n'__fish_meson_using_command introspect' -l ast -d'Dump the AST of the meson file' 235complete -c meson -n'__fish_meson_using_command introspect' -l benchmarks -d'List all benchmarks' 236complete -c meson -n'__fish_meson_using_command introspect' -l buildoptions -d'List all build options' 237complete -c meson -n'__fish_meson_using_command introspect' -l buildsystem-files -d'List files that make up the build system' 238complete -c meson -n'__fish_meson_using_command introspect' -l dependencies -d'List external dependencies' 239complete -c meson -n'__fish_meson_using_command introspect' -l scan-dependencies -d'Scan for dependencies used in the meson.build file' 240complete -c meson -n'__fish_meson_using_command introspect' -l installed -d'List all installed files and directories' 241complete -c meson -n'__fish_meson_using_command introspect' -l install-plan -d'List all installed files and directories with their details' 242complete -c meson -n'__fish_meson_using_command introspect' -l projectinfo -d'Information about projects' 243complete -c meson -n'__fish_meson_using_command introspect' -l targets -d'List top level targets' 244complete -c meson -n'__fish_meson_using_command introspect' -l tests -d'List all unit tests' 245complete -c meson -n'__fish_meson_using_command introspect' -l backend -xa'ninja vs vs2010 vs2012 vs2013 vs2015 vs2017 vs2019 vs2022 xcode' -d'The backend to use for the --buildoptions introspection' 246complete -c meson -n'__fish_meson_using_command introspect' -s a -l all -d'Print all available information' 247complete -c meson -n'__fish_meson_using_command introspect' -s i -l indent -d'Enable pretty printed JSON' 248complete -c meson -n'__fish_meson_using_command introspect' -s f -l force-object-output -d'Always use the new JSON format for multiple entries' 249 250### install 251complete -c meson -n __fish_meson_needs_command -kxa install -d'Install the project' 252complete -c meson -n'__fish_meson_using_command install' -f 253complete -c meson -n'__fish_meson_using_command install' -s C -xa'(__fish_complete_directories)' -d'Directory to cd into before running' 254complete -c meson -n'__fish_meson_using_command install' -l no-rebuild -d'Do not rebuild before installing' 255complete -c meson -n'__fish_meson_using_command install' -l only-changed -d'Only overwrite files that are older than the copied file' 256complete -c meson -n'__fish_meson_using_command install' -l quiet -d'Do not print every file that was installed' 257complete -c meson -n'__fish_meson_using_command install' -l destdir -r -d'Sets or overrides DESTDIR environment' 258complete -c meson -n'__fish_meson_using_command install' -s n -l dry-run -d'Do not actually install, but print logs' 259complete -c meson -n'__fish_meson_using_command install' -l skip-subprojects -xa'(__fish_meson_subprojects)' -d'Do not install files from given subprojects' 260complete -c meson -n'__fish_meson_using_command install' -l tags -x -d'Install only targets having one of the given tags' 261complete -c meson -n'__fish_meson_using_command install' -l strip -d'Strip targets even if strip option was not set during configure' 262 263### init 264complete -c meson -n __fish_meson_needs_command -kxa init -d'Create a project from template' 265complete -c meson -n'__fish_meson_using_command init' -s C -xa'(__fish_complete_directories)' -d'Directory to cd into before running' 266complete -c meson -n'__fish_meson_using_command init' -s n -l name -x -d'Project name' 267complete -c meson -n'__fish_meson_using_command init' -s e -l executable -x -d'Executable name' 268complete -c meson -n'__fish_meson_using_command init' -s d -l deps -x -d'Dependencies, comma-separated' 269complete -c meson -n'__fish_meson_using_command init' -s l -l language -xa'c cpp cs cuda d fortran java objc objcpp rust vala' -d'Project language' 270complete -c meson -n'__fish_meson_using_command init' -s b -l build -d'Build after generation' 271complete -c meson -n'__fish_meson_using_command init' -l builddir -r -d'Directory for build' 272complete -c meson -n'__fish_meson_using_command init' -s f -l force -d'Force overwrite of existing files and directories' 273complete -c meson -n'__fish_meson_using_command init' -l type -xa'executable library' -d'Project type' 274complete -c meson -n'__fish_meson_using_command init' -l version -x -d'Project version' 275 276### help 277complete -c meson -n __fish_meson_needs_command -kxa help -d'Show help for a command' 278complete -c meson -n'__fish_meson_using_command help' -xa"(__fish_meson_help_commands)" 279 280### dist 281complete -c meson -n __fish_meson_needs_command -kxa dist -d'Generate a release archive' 282complete -c meson -n'__fish_meson_using_command dist' -f 283complete -c meson -n'__fish_meson_using_command dist' -s C -xa'(__fish_complete_directories)' -d'Directory to cd into before running' 284complete -c meson -n'__fish_meson_using_command dist' -l allow-dirty -d'Allow even when repository contains uncommitted changes' 285complete -c meson -n'__fish_meson_using_command dist' -l formats -xa'xztar gztar zip' -d'Comma separated list of archive types to create' 286complete -c meson -n'__fish_meson_using_command dist' -l include-subprojects -d'Include source code of subprojects' 287complete -c meson -n'__fish_meson_using_command dist' -l no-tests -d'Do not build and test generated packages' 288 289### devenv 290complete -c meson -n __fish_meson_needs_command -kxa devenv -d'Run a command from the build directory' 291complete -c meson -n'__fish_meson_using_command devenv' -s h -l help -d'Show help' 292complete -c meson -n'__fish_meson_using_command devenv' -s C -xa'(__fish_complete_directories)' -d'Path to build directory' 293complete -c meson -n'__fish_meson_using_command devenv' -s w -l workdir -xa'(__fish_complete_directories)' -d'Directory to cd into before running' 294complete -c meson -n'__fish_meson_using_command devenv' -l dump -d'Only print required environment' 295complete -c meson -n'__fish_meson_using_command devenv' -l dump-format -xa'sh export vscode' -d'Format used with --dump' 296 297### configure 298complete -c meson -n __fish_meson_needs_command -kxa configure -d'Change project options' 299complete -c meson -n'__fish_meson_using_command configure' -xa'(__fish_complete_directories)' 300complete -c meson -n'__fish_meson_using_command configure' -l clearcache -d'Clear cached state' 301complete -c meson -n'__fish_meson_using_command configure' -l no-pager -d'Do not redirect output to a pager' 302 303### compile 304complete -c meson -n __fish_meson_needs_command -kxa compile -d'Build the configured project' 305complete -c meson -n'__fish_meson_using_command compile' -xa'(__fish_meson_targets)' 306complete -c meson -n'__fish_meson_using_command compile' -l clean -d'Clean the build directory' 307complete -c meson -n'__fish_meson_using_command compile' -s C -r -d'Directory to cd into before running' 308complete -c meson -n'__fish_meson_using_command compile' -s j -l jobs -x -d'The number of worker jobs to run' 309complete -c meson -n'__fish_meson_using_command compile' -s l -l load-average -x -d'The system load average to try to maintain' 310complete -c meson -n'__fish_meson_using_command compile' -s v -l verbose -d'Show more verbose output' 311complete -c meson -n'__fish_meson_using_command compile' -l ninja-args -x -d'Arguments to pass to `ninja`' 312complete -c meson -n'__fish_meson_using_command compile' -l vs-args -x -d'Arguments to pass to `msbuild`' 313complete -c meson -n'__fish_meson_using_command compile' -l xcode-args -x -d'Arguments to pass to `xcodebuild`' 314 315# tag: k_reverse_order