fork/fish-shell

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

Karolina GontarekShorten completions for vbc and pydf (#7859)a0f05b376

master
8.5 KiB140 linesraw
1# Completions for the Visual Basic Compiler(Roslyn)
2# See: https://docs.microsoft.com/en-us/dotnet/visual-basic/reference/command-line-compiler/compiler-options-listed-by-category
3
4# Compiler output
5complete -c vbc -o nologo -d "Suppresses compiler banner information"
6complete -c vbc -o utf8output -o "utf8output+" -d "Displays compiler output using UTF-8 encoding"
7complete -c vbc -o utf8output- -d "Disable -utf8output"
8complete -c vbc -o verbose -o "verbose+" -d "Outputs extra information during compilation"
9complete -c vbc -o verbose- -d "Disable -verbose"
10complete -c vbc -o "modulename:" -d "Specify the name of the source module"
11complete -c vbc -o "preferreduilang:" -d "Specify a language for compiler output"
12
13# Optimization
14for bytes in 512 1024 2048 4096 8192
15    complete -c vbc -o "filealign:$bytes" -d "Specifies where to align the sections of the output file"
16end
17
18complete -c vbc -o optimize -o "optimize+" -d "Enable optimizations"
19complete -c vbc -o optimize- -d "Disable optimizations"
20
21# Output files
22complete -c vbc -o doc -o "doc:" -o "doc+" -d "Process documentation comments to an XML file"
23complete -c vbc -o doc- -d "Disable -doc"
24complete -c vbc -o deterministic -d "Output identical assemblies for identical inputs"
25complete -c vbc -o netcf -d "Sets the compiler to target the .NET Compact Framework"
26complete -c vbc -o "out:" -d "Specifies an output file"
27complete -c vbc -o refonly -d "Outputs only a reference assembly"
28complete -c vbc -o "refout:" -d "Specifies the output path of a reference assembly"
29complete -c vbc -o "t:exe" -o "target:exe" -d "Create a console application"
30complete -c vbc -o "t:library" -o "target:library" -d "Create a dynamic-link library"
31complete -c vbc -o "t:module" -o "target:module" -d "Create a module that can be added to an assembly"
32complete -c vbc -o "t:winexe" -o "target:winexe" -d "Create Windows application"
33complete -c vbc -o "t:appcontainerexe" -o "target:appcontainerexe" -d "Create Windows application that must be run in an app container"
34complete -c vbc -o "t:winmdobj" -o "target:winmdobj" -d "Create an intermediate file that can be converted to .winmd file"
35
36# .NET assemblies
37complete -c vbc -o "addmodule:" -d "Add type information from provided files to the project"
38complete -c vbc -o delaysign -o "delaysign+" -d "Specifies whether the assembly will be fully or partially signed"
39complete -c vbc -o delaysign- -d "Disable -delaysign"
40complete -c vbc -o "imports:" -d "Imports a namespace from a specified assembly"
41complete -c vbc -o "keycontainer:" -d "Specify a strong name key container"
42complete -c vbc -o "keyfile:" -d "Specify a strong name key file"
43complete -c vbc -o "libpath:" -d "Specifies the location of assemblies referenced by the -reference option"
44complete -c vbc -o "r:" -o "reference:" -d "Imports metadata from an assembly"
45complete -c vbc -o "moduleassemblyname:" -d "Specifies the name of the assembly that a module will be a part of"
46complete -c vbc -o "a:" -o "analyzer:" -d "Run the analyzers from this assembly"
47complete -c vbc -o "additionalfile:" -d "Files that analyzers can use to generate error or warning"
48
49# Debugging/error checking
50complete -c vbc -o "bugreport:" -d "Creates a file that contains information that makes it easy to report a bug"
51
52complete -c vbc -o debug -o "debug+" -d "Produces debugging information"
53for arguments in full pdbonly
54    complete -c vbc -o "debug:$arguments" -d "Produces debugging information"
55end
56complete -c vbc -o debug- -d "Disable -debug"
57
58complete -c vbc -o nowarn -o "nowarn:" -d "Suppresses the compiler's ability to generate warnings"
59complete -c vbc -o quiet -d "Don't display code for syntax-related errors and warnings"
60complete -c vbc -o removeintchecks -o "removeintchecks+" -d "Disables integer overflow checking"
61complete -c vbc -o removeintchecks- -d "Disable -removeintchecks"
62complete -c vbc -o warnaserror -o "warnaserror:" -o "warnaserror+" -o "warnaserror+:" -d "Promotes warnings to errors"
63complete -c vbc -o warnaserror- -o "warnaserror-:" -d "Disable -warnaserror"
64complete -c vbc -o "ruleset:" -d "Specify a ruleset file that disables specific diagnostics"
65
66# Help
67complete -c vbc -s "?" -o help -d "Displays the compiler options"
68
69# Language
70complete -c vbc -o "langversion:?" -d "Display the allowed values for language version"
71complete -c vbc -o "langversion:default" -d "Specify latest major version as language version"
72complete -c vbc -o "langversion:latest" -d "Specify latest version (including minor releases) as language version"
73for version_number in (seq 9 15)
74    switch $version_number
75        case (seq 9 12) 14
76            complete -c vbc -o "langversion:$version_number" -d "Specify $version_number as language version"
77            complete -c vbc -o "langversion:$version_number.0" -d "Specify $version_number.0 as language version"
78        case 15
79            complete -c vbc -o "langversion:$version_number" -d "Specify $version_number as language version"
80            complete -c vbc -o "langversion:$version_number.0" -d "Specify $version_number.0 as language version"
81            complete -c vbc -o "langversion:$version_number.3" -d "Specify $version_number.3 as language version"
82            complete -c vbc -o "langversion:$version_number.5" -d "Specify $version_number.5 as language version"
83    end
84end
85
86complete -c vbc -o optionexplicit -o "optionexplicit+" -d "Enforces explicit declaration of variables"
87complete -c vbc -o optionexplicit- -d "Disable -optionexplicit"
88complete -c vbc -o optionstrict -o "optionstrict+" -o "optionstrict:" -d "Enforces strict type semantics"
89complete -c vbc -o optionstrict- -d "Disable -optionstrict"
90
91for arguments in binary text
92    complete -c vbc -o "optioncompare:$arguments" -d "Specify string comparison mode: text or binary"
93end
94
95complete -c vbc -o optioninfer -o "optioninfer+" -d "Enables the use of local type inference in variable declarations"
96complete -c vbc -o optioninfer- -d "Disable -optioninfer"
97
98# Preprocessor
99complete -c vbc -o "d:" -o "define:" -d "Defines symbols for conditional compilation"
100
101# Resources
102complete -c vbc -o "linkres:" -o "linkresource:" -d "Creates a link to a managed resource"
103complete -c vbc -o "res:" -o "resource:" -d "Embeds a managed resource in an assembly"
104complete -c vbc -o "win32icon:" -d "Inserts an .ico file into the output file"
105complete -c vbc -o "win32resource:" -d "Inserts a Win32 resource into the output file"
106
107# Miscellaneous
108complete -c vbc -o "baseaddress:" -d "Specifies the base address of a DLL"
109complete -c vbc -o "codepage:" -d "Specify the code page for source code files"
110
111for arguments in prompt queue send none
112    complete -c vbc -o "errorreport:$arguments" -d "Specify how to report internal compiler errors"
113end
114
115complete -c vbc -o highentropyva -o "highentropyva+" -d "Specify if an executable supports high entropy ASLR"
116complete -c vbc -o highentropyva- -d "Disable -highentropyva"
117complete -c vbc -o "m:" -o "main:" -d "Specifies the class that contains the Sub Main procedure to use at startup"
118complete -c vbc -o noconfig -d "Do not compile with Vbc.rsp"
119complete -c vbc -o nostdlib -d "Causes the compiler not to reference the standard libraries"
120complete -c vbc -o nowin32manifest -d "Don't embed any application manifest into the executable"
121complete -c vbc -o "platform:x86" -d "Specify x86 as target platform"
122complete -c vbc -o "platform:x64" -d "Specify AMD64 or EM64T as target platform"
123complete -c vbc -o "platform:Itanium" -d "Specify Itanium as target platform"
124complete -c vbc -o "platform:arm" -d "Specify ARM as target platform"
125complete -c vbc -o "platform:anycpu" -d "Specify any platform as target"
126complete -c vbc -o "platform:anycpu32bitpreferred" -d "Specify any platform as target (32-bit process on 64-bit machine)"
127complete -c vbc -o "recurse:" -d "Searches subdirectories for source files to compile"
128complete -c vbc -o "rootnamespace:" -d "Specifies a namespace for all type declarations"
129complete -c vbc -o "sdkpath:" -d "Specifies the location of Mscorlib.dll and Microsoft.VisualBasic.dll"
130
131complete -c vbc -o "vbruntime:" -d "Specify reference to VB Runtime Library or disable library referencing"
132for arguments in - + "*"
133    complete -c vbc -o "vbruntime:$arguments" -d "Specify reference to VB Runtime Library or disable library referencing"
134end
135
136complete -c vbc -o "win32manifest:" -d "Provide application manifest file"
137complete -c vbc -o parallel -o "parallel+" -d "Specifies whether to use concurrent build"
138complete -c vbc -o parallel- -d "Disable -parallel"
139complete -c vbc -o "checksumalgorithm:SHA1" -d "Use SHA1 to calculate the source file checksum"
140complete -c vbc -o "checksumalgorithm:SHA256" -d "Use SHA256 to calculate the source file checksum"