fork/fish-shell

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

NunzariusAdded completionsf7966b324

master
4.0 KiB67 linesraw
1# Completions for the F# Interactive
2# See: https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options
3
4# Input files
5complete -c fsharpi -l "use:" -d "Use the given file on startup"
6complete -c fsharpi -l "load:" -d "#load the given file on startup"
7complete -c fsharpi -o "r:" -l "reference:" -d "Reference an assembly"
8
9# Code generation
10complete -c fsharpi -s g -o "g+" -l debug -l "debug+" -d "Emit debug information"
11complete -c fsharpi -o g- -l debug- -d "Disable --debug"
12for arguments in full pdbonly portable embedded
13    complete -c fsharpi -o "g:$arguments" -l "debug:$arguments" -d "Specify debugging type"
14end
15
16complete -c fsharpi -s O -o "O+" -l optimize -l "optimize+" -d "Enable optimizations"
17complete -c fsharpi -o O- -l optimize- -d "Disable --optimize"
18complete -c fsharpi -l tailcalls -l "tailcalls+" -d "Enable or disable tailcalls"
19complete -c fsharpi -l tailcalls- -d "Disable --tailcalls"
20complete -c fsharpi -l deterministic -l "deterministic+" -d "Produce a deterministic assembly"
21complete -c fsharpi -l deterministic- -d "Disable --deterministic"
22complete -c fsharpi -l crossoptimize -l "crossoptimize+" -d "Enable or disable cross-module optimizations"
23complete -c fsharpi -l crossoptimize- -d "Disable --crossoptimize"
24
25# Errors and warnings
26complete -c fsharpi -l warnaserror -l "warnaserror+" -d "Report all warnings as errors"
27complete -c fsharpi -l warnaserror- -d "Disable --warnaserror"
28complete -c fsharpi -l "warnaserror:" -l "warnaserror+:" -d "Report specific warnings as errors"
29complete -c fsharpi -l "warnaserror-:" -d "Disable --warnaserror:"
30
31for warning_level in (seq 0 5)
32    complete -c fsharpi -l "warn:$warning_level" -d "Set a warning level to $warning_level"
33end
34
35complete -c fsharpi -l "nowarn:" -d "Disable specific warning messages"
36complete -c fsharpi -l "warnon:" -d "Enable specific warnings that may be off by default"
37complete -c fsharpi -l consolecolors -l "consolecolors+" -d "Output warning and error messages in color"
38complete -c fsharpi -l consolecolors- -d "Disable --consolecolors"
39
40# Language
41complete -c fsharpi -l checked -l "checked+" -d "Generate overflow checks"
42complete -c fsharpi -l checked- -d "Disable --checked"
43complete -c fsharpi -o "d:" -l "define:" -d "Define conditional compilation symbols"
44complete -c fsharpi -l mlcompatibility -d "Ignore ML compatibility warnings"
45
46# Miscellaneous
47complete -c fsharpi -l nologo -d "Suppress compiler copyright message"
48complete -c fsharpi -s "?" -l help -d "Display this usage message"
49
50# Advanced
51complete -c fsharpi -l "codepage:" -d "Specify the codepage used to read source files"
52complete -c fsharpi -l utf8output -d "Output messages in UTF-8 encoding"
53complete -c fsharpi -l fullpaths -d "Output messages with fully qualified paths"
54complete -c fsharpi -o "I:" -l "lib:" -d "Specify a dir for the include path for source files and assemblies"
55complete -c fsharpi -l simpleresolution -d "Resolve assembly references using directory-based rules"
56complete -c fsharpi -l "targetprofile:" -d "Specify target framework profile: mscorlib, netcore or netstandard"
57complete -c fsharpi -l noframework -d "Do not reference the default CLI assemblies by default"
58complete -c fsharpi -l exec -d "Exit fsi after loading files or running the .fsx script"
59complete -c fsharpi -l gui -l "gui+" -d "Execute interactions on a Windows Forms event loop"
60complete -c fsharpi -l gui- -d "Disable --gui"
61complete -c fsharpi -l quiet -d "Suppress fsi writing to stdout"
62complete -c fsharpi -l readline -l "readline+" -d "Support TAB completion in console"
63complete -c fsharpi -l readline- -d "Disable --readline"
64complete -c fsharpi -l quotations-debug -l "quotations-debug+" -d "Emit debug information in quotations"
65complete -c fsharpi -l quotations-debug- -d "Disable --quotations-debug"
66complete -c fsharpi -l shadowcopyreferences -l "shadowcopyreferences+" -d "Prevents references being locked by the F# Interactive process"
67complete -c fsharpi -l shadowcopyreferences- -d "Disable --shadowcopyreferences"