fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
00e0d6ad9
master
1# Completions for the Visual C# Compiler(Roslyn) 2# See: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/listed-by-category 3 4# Optimization 5for bytesin 512 1024 2048 4096 8192 6complete -c csc -o"filealign: $bytes " -d"Specifies the size of sections in the output file" 7end 8 9complete -c csc -s o -o"o+" -o optimize -o"optimize+" -d"Enable optimizations" 10complete -c csc -o o- -o optimize- -d"Disable optimizations" 11 12# Output Files 13complete -c csc -o deterministic -d"Make output identical across compilations if inputs are identical" 14complete -c csc -o"doc:" -d"Specifies an XML file where processed documentation comments are to be written" 15complete -c csc -o"out:" -d"Specifies the output file" 16complete -c csc -o"pathmap:" -d"Specify a mapping for source path names output by the compiler" 17complete -c csc -o"pdb:" -d"Specifies the file name and location of the .pdb file" 18complete -c csc -o"platform:anycpu" -d"Specify any platform as the output platform (default)" 19complete -c csc -o"platform:anycpu32bitpreferred" -d"Specify any platform as the output platform" 20complete -c csc -o"platform:ARM" -d"Specify ARM as the output platform" 21complete -c csc -o"platform:ARM64" -d"Specify ARM64 as the output platform" 22complete -c csc -o"platform:x64" -d"Specify AMD64 or EM64T as the output platform" 23complete -c csc -o"platform:x86" -d"Specify x86 as the output platform" 24complete -c csc -o"platform:Itanium" -d"Specify Itanium as the output platform" 25complete -c csc -o"preferreduilang:" -d"Specify a language for compiler output" 26complete -c csc -o"refout:" -d"Generate a reference assembly in addition to the primary assembly" 27complete -c csc -o refonly -d"Generate a reference assembly instead of a primary assembly" 28complete -c csc -o"t:appcontainerexe" -o"target:appcontainerexe" -d"Specify .exe file for Windows 8.x Store apps as the format of the output file" 29complete -c csc -o"t:exe" -o"target:exe" -d"Specify .exe file as the format of the output file (default)" 30complete -c csc -o"t:library" -o"target:library" -d"Specify code library as the format of the output file" 31complete -c csc -o"t:module" -o"target:module" -d"Specify module as the format of the output file" 32complete -c csc -o"t:winexe" -o"target:winexe" -d"Specify Windows program as the format of the output file" 33complete -c csc -o"t:winmdobj" -o"target:winmdobj" -d"Specify intermediate .winmdobj file as the format of the output file" 34complete -c csc -o"modulename:" -d"Specify the name of the source module" 35 36# .NET Framework Assemblies 37complete -c csc -o"addmodule:" -d"Specifies one or more modules to be part of this assembly" 38complete -c csc -o delaysign -o"delaysign+" -d"Instructs the compiler to add the public key but to leave the assembly unsigned" 39complete -c csc -o delaysign- -d"Disable -delaysign" 40complete -c csc -o"keycontainer:" -d"Specifies the name of the cryptographic key container" 41complete -c csc -o"keyfile:" -d"Specifies the filename containing the cryptographic key" 42complete -c csc -o"lib:" -d"Specifies the location of assemblies referenced by means of -reference" 43complete -c csc -o nostdlib -o"nostdlib+" -d"Instructs the compiler not to import the standard library (mscorlib.dll)" 44complete -c csc -o nostdlib- -d"Disable -nostdlib" 45complete -c csc -o publicsign -d"Apply a public key without signing the assembly" 46complete -c csc -o"r:" -o"reference:" -d"Imports metadata from a file that contains an assembly" 47complete -c csc -o"a:" -o"analyzer:" -d"Run the analyzers from this assembly" 48complete -c csc -o"additionalfile:" -d"Names additional files that don't directly affect code generation but may be used by analyzers for producing errors or warnings" 49complete -c csc -o embed -d"Embed all source files in the PDB" 50complete -c csc -o"embed:" -d"Embed specific files in the PDB" 51 52# Debugging/Error Checking 53complete -c csc -o"bugreport:" -d"Creates a file that contains information that makes it easy to report a bug" 54complete -c csc -o checked -o"checked+" -d"Generate overflow checks" 55complete -c csc -o checked- -d"Disable overflow checks" 56 57complete -c csc -o debug -o"debug+" -d"Instruct the compiler to emit debugging information" 58for argumentsin full pdbonly 59complete -c csc -o"debug: $arguments " -d"Instruct the compiler to emit debugging information" 60end 61complete -c csc -o debug- -d"Disable -debug" 62 63for argumentsin none prompt queue send 64complete -c csc -o"errorreport: $arguments " -d"Sets error reporting behavior" 65end 66 67complete -c csc -o fullpaths -d"Specifies the absolute path to the file in compiler output" 68complete -c csc -o"nowarn:" -d"Suppresses the compiler's generation of specified warnings" 69 70for warning_levelin ( seq 0 4 ) 71if test $warning_level -ne 4 72complete -c csc -o"w: $warning_level " -o"warn: $warning_level " -d"Sets the warning level to $warning_level " 73else 74complete -c csc -o"w: $warning_level " -o"warn: $warning_level " -d"Sets the warning level to $warning_level (default)" 75end 76end 77 78complete -c csc -o warnaserror -o"warnaserror+" -d"Promotes warnings to errors" 79complete -c csc -o warnaserror- -d"Disable -warnaserror" 80complete -c csc -o"ruleset:" -d"Specify a ruleset file that disables specific diagnostics" 81 82# Preprocessor 83complete -c csc -o"d:" -o"define:" -d"Defines preprocessor symbols" 84 85# Resources 86complete -c csc -o"l:" -o"link:" -d"Makes COM type information in specified assemblies available to the project" 87complete -c csc -o"linkres:" -o"linkresource:" -d"Creates a link to a managed resource" 88complete -c csc -o"res:" -o"resource:" -d"Embeds a .NET Framework resource into the output file" 89complete -c csc -o"win32icon:" -d"Specifies an .ico file to insert into the output file" 90complete -c csc -o"win32res:" -d"Specifies a Win32 resource to insert into the output file" 91 92# Miscellaneous 93complete -c csc -s"?" -o help -d"Lists compiler options to stdout" 94complete -c csc -o"baseaddress:" -d"Specifies the preferred base address at which to load a DLL" 95complete -c csc -o"codepage:" -d"Specifies the code page to use for all source code files in the compilation" 96complete -c csc -o highentropyva -o"highentropyva+" -d"Specifies that the executable file supports address space layout randomization (ASLR)" 97complete -c csc -o highentropyva- -d"Disable -highentropyva" 98 99complete -c csc -o"langversion:?" -d"Display the allowed values for language version" 100complete -c csc -o"langversion:default" -d"Specify latest major version as language version" 101complete -c csc -o"langversion:latest" -d"Specify latest version (including minor releases) as language version" 102complete -c csc -o"langversion:latestMajor" -d"Specify latest major version as language version" 103complete -c csc -o"langversion:preview" -d"Specify latest preview version as language version" 104complete -c csc -o"langversion:ISO-1" -d"Specify ISO/IEC 23270:2003 C# (1.0/1.2) as language version" 105complete -c csc -o"langversion:ISO-2" -d"Specify ISO/IEC 23270:2006 C# (2.0) as language version" 106for version_numberin ( seq 3 8 ) 107switch $version_number 108case 7 109complete -c csc -o"langversion: $version_number " -d"Specify C# $version_number .0 as language version" 110complete -c csc -o"langversion: $version_number .1" -d"Specify C# $version_number .1 as language version" 111complete -c csc -o"langversion: $version_number .2" -d"Specify C# $version_number .2 as language version" 112complete -c csc -o"langversion: $version_number .3" -d"Specify C# $version_number .3 as language version" 113case 8 114complete -c csc -o"langversion: $version_number .0" -d"Specify C# $version_number .0 as language version" 115case "*" 116complete -c csc -o"langversion: $version_number " -d"Specify C# $version_number .0 as language version" 117end 118end 119 120complete -c csc -o"m:" -o"main:" -d"Specifies the location of the Main method" 121complete -c csc -o noconfig -d"Instructs the compiler not to compile with csc.rsp" 122complete -c csc -o nologo -d"Suppresses compiler banner information" 123complete -c csc -o"recurse:" -d"Searches subdirectories for source files to compile" 124complete -c csc -o"subsystemversion:" -d"Specifies the minimum version of the subsystem that the executable file can use" 125complete -c csc -o unsafe -d"Enables compilation of code that uses the unsafe keyword" 126complete -c csc -o utf8output -d"Displays compiler output using UTF-8 encoding" 127complete -c csc -o parallel -o"parallel+" -d"Specifies whether to use concurrent build" 128complete -c csc -o parallel- -d"Disable -parallel" 129complete -c csc -o"checksumalgorithm:SHA1" -d"Specify SHA1 as the algorithm for calculating the source file checksum stored in PDB (default)" 130complete -c csc -o"checksumalgorithm:SHA256" -d"Specify SHA256 as the algorithm for calculating the source file checksum stored in PDB"