fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

ccoVeilleFix typos in completions scripts0df6fa791

master
3.5 KiB56 linesraw
1function __fish_mkbundle_cross_args
2    mkbundle --list-targets | awk -F '	- ' '/^Targets available/ { exit } !/^Available targets/ { printf "%s\t%s\n", gensub(/^\t/, "", 1, $1), $2 }'
3end
4
5# Options
6complete -c mkbundle -l config -r -d 'Bundle DLLMAP Mono config file'
7complete -c mkbundle -l config-dir -r -d 'Use MONO_CFG_DIR environment variable as config dir'
8complete -c mkbundle -n 'not __fish_seen_argument -l sdk -l cross' -l cross -x -a '(__fish_mkbundle_cross_args)' \
9    -d 'Create bundle for the specified target platform'
10complete -c mkbundle -l deps \
11    -d 'Bundle all of the referenced assemblies for the assemblies listed on the command line option'
12complete -c mkbundle -l env -x -d 'Specify value for the environment variable'
13complete -c mkbundle -l fetch-target -x \
14    -d 'Download a precompiled runtime for the specified target from the Mono distribution site'
15complete -c mkbundle -l i18n -x -d 'Use encoding tables to ship with the executable'
16complete -c mkbundle -s L -r -d 'Use path for look for assemblies'
17complete -c mkbundle -l library -r -d 'Embed the dynamic library file'
18complete -c mkbundle -l lists-targets -d 'Show all of the available remote cross compilation targets'
19complete -c mkbundle -l local-targets -d 'Show all of the available local cross compilation targets'
20complete -c mkbundle -l cil-strip -r -d 'Use a CIL stripper that mkbundle will use if able to'
21complete -c mkbundle -l in-tree -r \
22    -d 'Use a mono source repository to pull the necessary headers for compilation'
23complete -c mkbundle -l managed-linker -r \
24    -d 'Use mkbundle access to a managed linker to preprocess the assemblies'
25complete -c mkbundle -l machine-config -r \
26    -d 'Use the given FILE as the machine.config file for the generated application'
27complete -c mkbundle -l no-config \
28    -d 'Prevent mkbundle from automatically bundling a config file'
29complete -c mkbundle -l nodeps \
30    -d 'Exclude all the assemblies but those were specified on the command line'
31complete -c mkbundle -s o -r -d 'Use output file name'
32complete -c mkbundle -l options -r -d 'Specify configuration options to the Mono runtime'
33complete -c mkbundle -n 'not __fish_seen_argument -l sdk -l cross' -l sdk -r \
34    -d 'Use a path from which mkbundle will resolve the Mono SDK from'
35complete -c mkbundle -l target-server -r -d 'Use a different server to provide cross-compiled runtimes'
36complete -c mkbundle -l mono-api-struct-path -r \
37    -d 'Use file with the definition of the BundleMonoAPI structure'
38
39# Old embedding options
40complete -c mkbundle -s c -d 'Produce the stub file, do not compile the resulting stub'
41complete -c mkbundle -o oo -r \
42    -d 'Specify the name to be used for the helper object file that contains the bundle'
43complete -c mkbundle -l keeptemp \
44    -d 'Prevent mkbundle from deleting temporary files that it uses to produce the bundle'
45complete -c mkbundle -l nomain -d 'Generate the host stub without a main() function'
46complete -c mkbundle -l static -d 'Statically link to mono and glib'
47complete -c mkbundle -s z -d 'Compress the assemblies before embedding'
48
49# AOT options
50complete -c mkbundle -l aot-runtime -r \
51    -d 'Use the path to the mono runtime to use for AOTing assemblies'
52complete -c mkbundle -l aot-dedup \
53    -d 'Deduplicate AOT\'ed methods based on a unique mangling of method names'
54complete -c mkbundle -l aot-mode -x \
55    -a 'full\t"Generate the necessary stubs to not require runtime code generation" llvmonly\t"Do the same, but force all codegen to go through the llvm backend"' \
56    -d 'Specify AOT mode'