mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-07-15 01:00:33 +03:00
🐛 fix a couple of parser errors (#782)
This is some legwork to the CI - [x] fix one `get-row.nu` before 0.60, just because it was easy - [x] `modules/formats/to-ini.nu` - [x] `modules/git/git-v2.nu` - [x] `modules/git/git.nu` - [x] `modules/log/log.nu` - [x] `modules/weather/weatherdark.nu` - [x] `sourced/api_wrappers/worlframalpha.nu` - [x] `sourced/cool-oneliners/pwd-short.nu` - [x] `sourced/github/branch-protections/branch-protections.nu` - [x] `sourced/gitlab/gitlab.nu` - [x] `sourced/misc/nu_defs.nu` - [x] `sourced/update-path.nu` - [x] `sourced/webscraping/shell_starts.nu` I moved some auto-generated commands: - [x] `ack` - [x] `as` - [x] `curl` - [x] `fsarprc` - [x] `fsarpri` - [x] `godoc` - [x] `mysql` - [x] and `xgettext` to custom, so we keep the modifications. I had to comment some of the flags because the parser is not able to parse some flags. Those are explained in comments
This commit is contained in:
parent
1ccc379f38
commit
bc6273d971
@ -3,5 +3,5 @@ def get-row [
|
||||
row_num:int # A 0 indexed row
|
||||
] {
|
||||
|
||||
nth $row_num | table -n $row_num
|
||||
nth $row_num | table --index $row_num
|
||||
}
|
66
custom-completions/ack/ack-completions.nu
Normal file
66
custom-completions/ack/ack-completions.nu
Normal file
@ -0,0 +1,66 @@
|
||||
# copied from auto-generated completions
|
||||
|
||||
extern "ack" [
|
||||
--ignore-case(-i) # Ignore case
|
||||
--smart-case # Ignore case when pattern contains no uppercase
|
||||
--no-smart-case # Dont ignore case
|
||||
--invert-match(-v) # Invert match
|
||||
--word-regexp(-w) # Match only whole words
|
||||
--literal(-Q) # Quote all metacharacters
|
||||
--lines # Only print line(s) NUM of each file
|
||||
--files-with-matches(-l) # Only print filenames containing matches
|
||||
--files-without-matches(-L) # Only print filenames with no matches
|
||||
--output # Output the evaluation of Perl expression for each line
|
||||
--passthru # Print all lines
|
||||
--match # Specify pattern explicitly
|
||||
--max-count(-m) # Stop searching in each file after NUM matches
|
||||
--with-filename(-H) # Print the filename for each match
|
||||
--no-filename(-h) # Suppress the prefixing filename on output
|
||||
--count(-c) # Show number of lines matching per file
|
||||
--column # Show column number of first match
|
||||
--no-column # Dont show column number of first match
|
||||
--print0 # Print null byte as separator between filenames
|
||||
--pager # Pipes all ack output through command
|
||||
--no-pager # Do not send output through a pager
|
||||
--heading # Prints a filename heading above files results
|
||||
--no-heading # Dont print a filename heading above files results
|
||||
--break # Print a break between results
|
||||
--no-break # Dont print a break between results
|
||||
--group # Filename heading and line break between results
|
||||
--no-group # No filename heading and no line breaks between results
|
||||
--color # Highlight the matching text
|
||||
--no-colour # Dont highlight the matching text
|
||||
--color-filename # Set the color for filenames
|
||||
--color-match # Set the color for matches
|
||||
--color-lineno # Set the color for line numbers
|
||||
--flush # Flush output immediately
|
||||
--sort-files # Sort the found files lexically
|
||||
--show-types # Show which types each file has
|
||||
--files-from # Read the list of files to search from file
|
||||
--ignore-directory # Ignore directory
|
||||
--no-ignore-directory # Dont ignore directory
|
||||
--ignore-file # Add filter for ignoring files
|
||||
--recurse(-R) # Recurse into subdirectories
|
||||
--no-recurse(-n) # No descending into subdirectories
|
||||
--follow # Follow symlinks
|
||||
--no-follow # Dont follow symlinks
|
||||
--known-types(-k) # Include only recognized files
|
||||
--type # Include only X files
|
||||
--type-set # Replaces definition of type
|
||||
--type-add # Specify definition of type
|
||||
--type-del # Removes all filters associated with type
|
||||
--no-env # Ignores environment variables and ackrc files
|
||||
--ackrc # Specifies location of ackrc file
|
||||
--ignore-ack-defaults # Ignore default definitions ack includes
|
||||
--create-ackrc # Outputs default ackrc
|
||||
--help(-?) # Shows help
|
||||
--help-types # Shows all known types
|
||||
--dump # Dump information on which options are loaded
|
||||
--filter # Forces ack to treat input as a pipe
|
||||
--no-filter # Forces ack to treat input as tty
|
||||
--man # Shows man page
|
||||
--version # Displays version and copyright
|
||||
--thpppt # Bill the Cat
|
||||
--bar # The warning admiral
|
||||
...args
|
||||
]
|
@ -8,7 +8,7 @@ extern "as" [
|
||||
--sectname-subst # Enable section name substitution sequences
|
||||
--gen-debug(-g) # Generate debugging information
|
||||
--gstabs # Generate STABS debugging information
|
||||
--gstabs+ # Generate STABS debug info with GNU extensions
|
||||
# --gstabs+ # (breaks the nu parser) Generate STABS debug info with GNU extensions
|
||||
--gdwarf-2 # Generate DWARF2 debugging information
|
||||
--gdwarf-sections # Generate per-function section names for DWARF line information
|
||||
--help # Show help message and exit
|
||||
@ -42,7 +42,7 @@ extern "as yes no" [
|
||||
--sectname-subst # Enable section name substitution sequences
|
||||
--gen-debug(-g) # Generate debugging information
|
||||
--gstabs # Generate STABS debugging information
|
||||
--gstabs+ # Generate STABS debug info with GNU extensions
|
||||
# --gstabs+ # (breaks the nu parser) Generate STABS debug info with GNU extensions
|
||||
--gdwarf-2 # Generate DWARF2 debugging information
|
||||
--gdwarf-sections # Generate per-function section names for DWARF line information
|
||||
--help # Show help message and exit
|
@ -1,65 +0,0 @@
|
||||
# Ignore case
|
||||
extern "ack" [
|
||||
--ignore-case(-i) # Ignore case
|
||||
--smart-case # Ignore case when pattern contains no uppercase
|
||||
--no-smart-case # Dont ignore case
|
||||
--invert-match(-v) # Invert match
|
||||
--word-regexp(-w) # Match only whole words
|
||||
--literal(-Q) # Quote all metacharacters
|
||||
--lines # Only print line(s) NUM of each file
|
||||
--files-with-matches(-l) # Only print filenames containing matches
|
||||
--files-without-matches(-L) # Only print filenames with no matches
|
||||
--output # Output the evaluation of Perl expression for each line
|
||||
--passthru # Print all lines
|
||||
--match # Specify pattern explicitly
|
||||
--max-count(-m) # Stop searching in each file after NUM matches
|
||||
--with-filename(-H) # Print the filename for each match
|
||||
--no-filename(-h) # Suppress the prefixing filename on output
|
||||
--count(-c) # Show number of lines matching per file
|
||||
--column # Show column number of first match
|
||||
--no-column # Dont show column number of first match
|
||||
--print0 # Print null byte as separator between filenames
|
||||
--pager # Pipes all ack output through command
|
||||
--no-pager # Do not send output through a pager
|
||||
--heading # Prints a filename heading above files results
|
||||
--no-heading # Dont print a filename heading above files results
|
||||
--break # Print a break between results
|
||||
--no-break # Dont print a break between results
|
||||
--group # Filename heading and line break between results
|
||||
--no-group # No filename heading and no line breaks between results
|
||||
--color # Highlight the matching text
|
||||
--no-colour # Dont highlight the matching text
|
||||
--color-filename # Set the color for filenames
|
||||
--color-match # Set the color for matches
|
||||
--color-lineno # Set the color for line numbers
|
||||
--flush # Flush output immediately
|
||||
--sort-files # Sort the found files lexically
|
||||
--show-types # Show which types each file has
|
||||
--files-from # Read the list of files to search from file
|
||||
--ignore-directory # Ignore directory
|
||||
--no-ignore-directory # Dont ignore directory
|
||||
--ignore-file # Add filter for ignoring files
|
||||
--recurse(-R) # Recurse into subdirectories
|
||||
--no-recurse(-n) # No descending into subdirectories
|
||||
--follow # Follow symlinks
|
||||
--no-follow # Dont follow symlinks
|
||||
--known-types(-k) # Include only recognized files
|
||||
--type # Include only X files
|
||||
--type-set # Replaces definition of type
|
||||
--type-add # Specify definition of type
|
||||
--type-del # Removes all filters associated with type
|
||||
--no-env # Ignores environment variables and ackrc files
|
||||
--ackrc # Specifies location of ackrc file
|
||||
--ignore-ack-defaults # Ignore default definitions ack includes
|
||||
--create-ackrc # Outputs default ackrc
|
||||
--help(-\?) # Shows help
|
||||
--help-types # Shows all known types
|
||||
--dump # Dump information on which options are loaded
|
||||
--filter # Forces ack to treat input as a pipe
|
||||
--no-filter # Forces ack to treat input as tty
|
||||
--man # Shows man page
|
||||
--version # Displays version and copyright
|
||||
--thpppt # Bill the Cat
|
||||
--bar # The warning admiral
|
||||
...args
|
||||
]
|
@ -1,67 +0,0 @@
|
||||
# Name of the output file
|
||||
extern "fsharpc" [
|
||||
--out: # Name of the output file
|
||||
--target:exe # Build a console executable
|
||||
--target:winexe # Build a Windows executable
|
||||
--target:library # Build a library
|
||||
--target:module # Build a module that can be added to another assembly
|
||||
--delaysign+ # Delay-sign the assembly using only the public portion of the strong name key
|
||||
--delaysign- # Disable --delaysign
|
||||
--doc: # Write the xmldoc of the assembly to the given file
|
||||
--keyfile: # Specify a strong name key file
|
||||
--keycontainer: # Specify a strong name key container
|
||||
--platform:x86 # Limit the platform to x86
|
||||
--platform:Itanium # Limit the platform to Itanium
|
||||
--platform:x64 # Limit the platform to x64
|
||||
--platform:anycpu32bitpreferred # Limit the platform to anycpu32bitpreferred
|
||||
--platform:anycpu # Limit the platform to anycpu (default)
|
||||
--nooptimizationdata # Only include optimization information for inlined constructs
|
||||
--nointerfacedata # Don't add a resource to the assembly containing F#-specific metadata
|
||||
--sig: # Print the inferred interface of the assembly to a file
|
||||
--reference: # Reference an assembly
|
||||
--win32res: # Specify a Win32 resource file (.res)
|
||||
--win32manifest: # Specify a Win32 manifest file
|
||||
--nowin32manifest # Do not include the default Win32 manifest
|
||||
--resource: # Embed the specified managed resource
|
||||
--linkresource: # Link the specified resource to this assembly
|
||||
--debug+(-g) # Emit debug information
|
||||
--debug- # Disable --debug
|
||||
--optimize+(-O) # Enable optimizations
|
||||
--optimize- # Disable --optimize
|
||||
--tailcalls+ # Enable or disable tailcalls
|
||||
--tailcalls- # Disable --tailcalls
|
||||
--deterministic+ # Produce a deterministic assembly
|
||||
--deterministic- # Disable --deterministic
|
||||
--crossoptimize+ # Enable or disable cross-module optimizations
|
||||
--crossoptimize- # Disable --crossoptimize
|
||||
--warnaserror+ # Report all warnings as errors
|
||||
--warnaserror- # Disable --warnaserror
|
||||
--warnaserror+: # Report specific warnings as errors
|
||||
--warnaserror-: # Disable --warnaserror:
|
||||
--nowarn: # Disable specific warning messages
|
||||
--warnon: # Enable specific warnings that may be off by default
|
||||
--consolecolors+ # Output warning and error messages in color
|
||||
--consolecolors- # Disable --consolecolors
|
||||
--checked+ # Generate overflow checks
|
||||
--checked- # Disable --checked
|
||||
--define: # Define conditional compilation symbols
|
||||
--mlcompatibility # Ignore ML compatibility warnings
|
||||
--nologo # Suppress compiler copyright message
|
||||
--help(-?) # Display this usage message
|
||||
--codepage: # Specify the codepage used to read source files
|
||||
--utf8output # Output messages in UTF-8 encoding
|
||||
--fullpaths # Output messages with fully qualified paths
|
||||
--lib: # Specify a directory for include path for resolving source files and assemblies
|
||||
--simpleresolution # Resolve assembly references using directory-based rules
|
||||
--baseaddress: # Base address for the library to be built
|
||||
--noframework # Do not reference the default CLI assemblies by default
|
||||
--standalone # Statically link F# library and referenced DLLs into the generated assembly
|
||||
--staticlink: # Statically link the assembly and referenced DLLs that depend on this assembly
|
||||
--pdb: # Name the output debug file
|
||||
--highentropyva+ # Enable high-entropy ASLR
|
||||
--highentropyva- # Disable --highentropyva
|
||||
--subsystemversion: # Specify subsystem version of this assembly
|
||||
--quotations-debug+ # Emit debug information in quotations
|
||||
--quotations-debug- # Disable --quotations-debug
|
||||
...args
|
||||
]
|
@ -1,48 +0,0 @@
|
||||
# Use the given file on startup
|
||||
extern "fsharpi" [
|
||||
--use: # Use the given file on startup
|
||||
--load: # #load the given file on startup
|
||||
--reference: # Reference an assembly
|
||||
--debug+(-g) # Emit debug information
|
||||
--debug- # Disable --debug
|
||||
--optimize+(-O) # Enable optimizations
|
||||
--optimize- # Disable --optimize
|
||||
--tailcalls+ # Enable or disable tailcalls
|
||||
--tailcalls- # Disable --tailcalls
|
||||
--deterministic+ # Produce a deterministic assembly
|
||||
--deterministic- # Disable --deterministic
|
||||
--crossoptimize+ # Enable or disable cross-module optimizations
|
||||
--crossoptimize- # Disable --crossoptimize
|
||||
--warnaserror+ # Report all warnings as errors
|
||||
--warnaserror- # Disable --warnaserror
|
||||
--warnaserror+: # Report specific warnings as errors
|
||||
--warnaserror-: # Disable --warnaserror:
|
||||
--nowarn: # Disable specific warning messages
|
||||
--warnon: # Enable specific warnings that may be off by default
|
||||
--consolecolors+ # Output warning and error messages in color
|
||||
--consolecolors- # Disable --consolecolors
|
||||
--checked+ # Generate overflow checks
|
||||
--checked- # Disable --checked
|
||||
--define: # Define conditional compilation symbols
|
||||
--mlcompatibility # Ignore ML compatibility warnings
|
||||
--nologo # Suppress compiler copyright message
|
||||
--help(-?) # Display this usage message
|
||||
--codepage: # Specify the codepage used to read source files
|
||||
--utf8output # Output messages in UTF-8 encoding
|
||||
--fullpaths # Output messages with fully qualified paths
|
||||
--lib: # Specify a dir for the include path for source files and assemblies
|
||||
--simpleresolution # Resolve assembly references using directory-based rules
|
||||
--targetprofile: # Specify target framework profile: mscorlib, netcore or netstandard
|
||||
--noframework # Do not reference the default CLI assemblies by default
|
||||
--exec # Exit fsi after loading files or running the .fsx script
|
||||
--gui+ # Execute interactions on a Windows Forms event loop
|
||||
--gui- # Disable --gui
|
||||
--quiet # Suppress fsi writing to stdout
|
||||
--readline+ # Support TAB completion in console
|
||||
--readline- # Disable --readline
|
||||
--quotations-debug+ # Emit debug information in quotations
|
||||
--quotations-debug- # Disable --quotations-debug
|
||||
--shadowcopyreferences+ # Prevents references being locked by the F# Interactive process
|
||||
--shadowcopyreferences- # Disable --shadowcopyreferences
|
||||
...args
|
||||
]
|
@ -65,9 +65,10 @@ extern "curl" [
|
||||
--header(-H) # (HTTP) Extra header to include in the request when sending HTTP to a server
|
||||
--help(-h) # Usage help
|
||||
--hostpubmd5 # (SFTP SCP) Pass a string containing 32 hexadecimal digits
|
||||
--http0.9 # (HTTP) Accept HTTP version 0.9 response
|
||||
--http1.0(-0) # (HTTP) Use HTTP version 1
|
||||
--http1.1 # (HTTP) Use HTTP version 1.1
|
||||
# these commands break the nu's parser
|
||||
#--http0.9 # (HTTP) Accept HTTP version 0.9 response
|
||||
#--http1.0(-0) # (HTTP) Use HTTP version 1
|
||||
#--http1.1 # (HTTP) Use HTTP version 1.1
|
||||
--http2-prior-knowledge # (HTTP) Use HTTP/2 immediately (without trying HTTP1)
|
||||
--http2 # (HTTP) Use HTTP version 2
|
||||
--ignore-content-length # (FTP HTTP) Ignore the Content-Length header
|
||||
@ -118,7 +119,8 @@ extern "curl" [
|
||||
--post302 # (HTTP) Respect RFC 7231/6.4
|
||||
--post303 # (HTTP) Violate RFC 7231/6.4
|
||||
--preproxy # Use the specified SOCKS proxy before connecting to HTTP(S) proxy
|
||||
--progress-bar(-#) # Display progress as a simple progress bar
|
||||
--progress-bar # Display progress as a simple progress bar
|
||||
# --progress-bar(-#) # (this short flag breaks nu parser) Display progress as a simple progress bar
|
||||
--proto-default # Use this protocol for any URL missing a scheme name
|
||||
--proto-redir # Limit what protocols it may use on redirect
|
||||
--proto # Limit what protocols it may use in the transfer
|
||||
@ -148,7 +150,7 @@ extern "curl" [
|
||||
--proxy-tlsv1 # Same as -1, --tlsv1 but used in HTTPS proxy context
|
||||
--proxy-user(-U) # Specify the user name and password to use for proxy authentication
|
||||
--proxy(-x) # Use the specified proxy
|
||||
--proxy1.0 # Use the specified HTTP 1.0 proxy
|
||||
# --proxy1.0 # This breaks nu parser. Use the specified HTTP 1.0 proxy
|
||||
--proxytunnel(-p) # If HTTP proxy is used, make curl tunnel through it
|
||||
--pubkey # (SFTP SCP) Public key file name
|
||||
--quote(-Q) # (FTP SFTP) Send an arbitrary command to the remote FTP or SFTP server
|
||||
@ -201,10 +203,11 @@ extern "curl" [
|
||||
--tlsauthtype # Set TLS authentication type
|
||||
--tlspassword # Set password for use with the TLS authentication method
|
||||
--tlsuser # Set username for use with the TLS authentication method
|
||||
--tlsv1.0 # (TLS) Forces curl to use TLS version 1.0
|
||||
--tlsv1.1 # (TLS) Forces curl to use TLS version 1.1
|
||||
--tlsv1.2 # (TLS) Forces curl to use TLS version 1.2
|
||||
--tlsv1.3 # (TLS) Forces curl to use TLS version 1.3
|
||||
# these commands break the nu's parser
|
||||
#--tlsv1.0 # (TLS) Forces curl to use TLS version 1.0
|
||||
#--tlsv1.1 # (TLS) Forces curl to use TLS version 1.1
|
||||
#--tlsv1.2 # (TLS) Forces curl to use TLS version 1.2
|
||||
#--tlsv1.3 # (TLS) Forces curl to use TLS version 1.3
|
||||
--tlsv1 # (SSL) Tells curl to use at least TLS version 1
|
||||
--tr-encoding # (HTTP) Request compressed Transfer-Encoding, uncompress on receive
|
||||
--trace-ascii # Enables a full trace dump of all incoming and outgoing data
|
||||
@ -293,9 +296,10 @@ extern "curl PEM, DER ENG P12" [
|
||||
--header(-H) # (HTTP) Extra header to include in the request when sending HTTP to a server
|
||||
--help(-h) # Usage help
|
||||
--hostpubmd5 # (SFTP SCP) Pass a string containing 32 hexadecimal digits
|
||||
--http0.9 # (HTTP) Accept HTTP version 0.9 response
|
||||
--http1.0(-0) # (HTTP) Use HTTP version 1
|
||||
--http1.1 # (HTTP) Use HTTP version 1.1
|
||||
# these commands break the nu's parser
|
||||
#--http0.9 # (HTTP) Accept HTTP version 0.9 response
|
||||
#--http1.0(-0) # (HTTP) Use HTTP version 1
|
||||
#--http1.1 # (HTTP) Use HTTP version 1.1
|
||||
--http2-prior-knowledge # (HTTP) Use HTTP/2 immediately (without trying HTTP1)
|
||||
--http2 # (HTTP) Use HTTP version 2
|
||||
--ignore-content-length # (FTP HTTP) Ignore the Content-Length header
|
||||
@ -346,7 +350,8 @@ extern "curl PEM, DER ENG P12" [
|
||||
--post302 # (HTTP) Respect RFC 7231/6.4
|
||||
--post303 # (HTTP) Violate RFC 7231/6.4
|
||||
--preproxy # Use the specified SOCKS proxy before connecting to HTTP(S) proxy
|
||||
--progress-bar(-#) # Display progress as a simple progress bar
|
||||
--progress-bar # Display progress as a simple progress bar
|
||||
# --progress-bar(-#) # (this short flag breaks nu parser) Display progress as a simple progress bar
|
||||
--proto-default # Use this protocol for any URL missing a scheme name
|
||||
--proto-redir # Limit what protocols it may use on redirect
|
||||
--proto # Limit what protocols it may use in the transfer
|
||||
@ -376,7 +381,7 @@ extern "curl PEM, DER ENG P12" [
|
||||
--proxy-tlsv1 # Same as -1, --tlsv1 but used in HTTPS proxy context
|
||||
--proxy-user(-U) # Specify the user name and password to use for proxy authentication
|
||||
--proxy(-x) # Use the specified proxy
|
||||
--proxy1.0 # Use the specified HTTP 1.0 proxy
|
||||
#--proxy1.0 # Use the specified HTTP 1.0 proxy
|
||||
--proxytunnel(-p) # If HTTP proxy is used, make curl tunnel through it
|
||||
--pubkey # (SFTP SCP) Public key file name
|
||||
--quote(-Q) # (FTP SFTP) Send an arbitrary command to the remote FTP or SFTP server
|
||||
@ -429,10 +434,10 @@ extern "curl PEM, DER ENG P12" [
|
||||
--tlsauthtype # Set TLS authentication type
|
||||
--tlspassword # Set password for use with the TLS authentication method
|
||||
--tlsuser # Set username for use with the TLS authentication method
|
||||
--tlsv1.0 # (TLS) Forces curl to use TLS version 1.0
|
||||
--tlsv1.1 # (TLS) Forces curl to use TLS version 1.1
|
||||
--tlsv1.2 # (TLS) Forces curl to use TLS version 1.2
|
||||
--tlsv1.3 # (TLS) Forces curl to use TLS version 1.3
|
||||
#--tlsv1.0 # (TLS) Forces curl to use TLS version 1.0
|
||||
#--tlsv1.1 # (TLS) Forces curl to use TLS version 1.1
|
||||
#--tlsv1.2 # (TLS) Forces curl to use TLS version 1.2
|
||||
#--tlsv1.3 # (TLS) Forces curl to use TLS version 1.3
|
||||
--tlsv1 # (SSL) Tells curl to use at least TLS version 1
|
||||
--tr-encoding # (HTTP) Request compressed Transfer-Encoding, uncompress on receive
|
||||
--trace-ascii # Enables a full trace dump of all incoming and outgoing data
|
69
custom-completions/fsharpc/fsharpc-completions.nu
Normal file
69
custom-completions/fsharpc/fsharpc-completions.nu
Normal file
@ -0,0 +1,69 @@
|
||||
# Name of the output file
|
||||
extern "fsharpc" [
|
||||
--out # Name of the output file
|
||||
--target # Build a console executable
|
||||
--target # Build a Windows executable
|
||||
--target # Build a library
|
||||
--target # Build a module that can be added to another assembly
|
||||
# breaks the parser
|
||||
# --delaysign+ # Delay-sign the assembly using only the public portion of the strong name key
|
||||
#--delaysign- # Disable --delaysign
|
||||
--doc # Write the xmldoc of the assembly to the given file
|
||||
--keyfile # Specify a strong name key file
|
||||
--keycontainer # Specify a strong name key container
|
||||
--platform # Limit the platform to x86
|
||||
--platform # Limit the platform to Itanium
|
||||
--platform # Limit the platform to x64
|
||||
--platform # Limit the platform to anycpu32bitpreferred
|
||||
--platform # Limit the platform to anycpu (default)
|
||||
--nooptimizationdata # Only include optimization information for inlined constructs
|
||||
--nointerfacedata # Don't add a resource to the assembly containing F#-specific metadata
|
||||
--sig # Print the inferred interface of the assembly to a file
|
||||
--reference # Reference an assembly
|
||||
--win32res # Specify a Win32 resource file (.res)
|
||||
--win32manifest # Specify a Win32 manifest file
|
||||
--nowin32manifest # Do not include the default Win32 manifest
|
||||
--resource # Embed the specified managed resource
|
||||
--linkresource # Link the specified resource to this assembly
|
||||
# breaks the parser
|
||||
# --debug+(-g) # Emit debug information
|
||||
--debug- # Disable --debug
|
||||
#--optimize+(-O) # Enable optimizations
|
||||
--optimize- # Disable --optimize
|
||||
#--tailcalls+ # Enable or disable tailcalls
|
||||
--tailcalls- # Disable --tailcalls
|
||||
#--deterministic+ # Produce a deterministic assembly
|
||||
--deterministic- # Disable --deterministic
|
||||
#--crossoptimize+ # Enable or disable cross-module optimizations
|
||||
--crossoptimize- # Disable --crossoptimize
|
||||
#--warnaserror+ # Report all warnings as errors
|
||||
--warnaserror- # Disable --warnaserror
|
||||
#--warnaserror+ # Report specific warnings as errors
|
||||
--warnaserror- # Disable --warnaserror:
|
||||
--nowarn # Disable specific warning messages
|
||||
--warnon # Enable specific warnings that may be off by default
|
||||
--consolecolors # Output warning and error messages in color
|
||||
--consolecolors # Disable --consolecolors
|
||||
#--checked+ # Generate overflow checks
|
||||
--checked- # Disable --checked
|
||||
--define # Define conditional compilation symbols
|
||||
--mlcompatibility # Ignore ML compatibility warnings
|
||||
--nologo # Suppress compiler copyright message
|
||||
--help(-?) # Display this usage message
|
||||
--codepage # Specify the codepage used to read source files
|
||||
--utf8output # Output messages in UTF-8 encoding
|
||||
--fullpaths # Output messages with fully qualified paths
|
||||
--lib # Specify a directory for include path for resolving source files and assemblies
|
||||
--simpleresolution # Resolve assembly references using directory-based rules
|
||||
--baseaddress # Base address for the library to be built
|
||||
--noframework # Do not reference the default CLI assemblies by default
|
||||
--standalone # Statically link F# library and referenced DLLs into the generated assembly
|
||||
--staticlink # Statically link the assembly and referenced DLLs that depend on this assembly
|
||||
--pdb # Name the output debug file
|
||||
#--highentropyva+ # Enable high-entropy ASLR
|
||||
--highentropyva- # Disable --highentropyva
|
||||
--subsystemversion # Specify subsystem version of this assembly
|
||||
#--quotations-debug+ # Emit debug information in quotations
|
||||
--quotations-debug- # Disable --quotations-debug
|
||||
...args
|
||||
]
|
48
custom-completions/fsharpi/fsharpi-completions.nu
Normal file
48
custom-completions/fsharpi/fsharpi-completions.nu
Normal file
@ -0,0 +1,48 @@
|
||||
# Use the given file on startup
|
||||
extern "fsharpi" [
|
||||
--use # Use the given file on startup
|
||||
--load # #load the given file on startup
|
||||
--reference # Reference an assembly
|
||||
#--debug+(-g) # Emit debug information
|
||||
--debug- # Disable --debug
|
||||
#--optimize+(-O) # Enable optimizations
|
||||
--optimize- # Disable --optimize
|
||||
#--tailcalls+ # Enable or disable tailcalls
|
||||
--tailcalls- # Disable --tailcalls
|
||||
#--deterministic+ # Produce a deterministic assembly
|
||||
--deterministic- # Disable --deterministic
|
||||
#--crossoptimize+ # Enable or disable cross-module optimizations
|
||||
--crossoptimize- # Disable --crossoptimize
|
||||
#--warnaserror+ # Report all warnings as errors
|
||||
--warnaserror- # Disable --warnaserror
|
||||
#--warnaserror+ # Report specific warnings as errors
|
||||
--warnaserror- # Disable --warnaserror:
|
||||
--nowarn # Disable specific warning messages
|
||||
--warnon # Enable specific warnings that may be off by default
|
||||
#--consolecolors+ # Output warning and error messages in color
|
||||
--consolecolors- # Disable --consolecolors
|
||||
#--checked+ # Generate overflow checks
|
||||
--checked- # Disable --checked
|
||||
--define # Define conditional compilation symbols
|
||||
--mlcompatibility # Ignore ML compatibility warnings
|
||||
--nologo # Suppress compiler copyright message
|
||||
--help(-?) # Display this usage message
|
||||
--codepage # Specify the codepage used to read source files
|
||||
--utf8output # Output messages in UTF-8 encoding
|
||||
--fullpaths # Output messages with fully qualified paths
|
||||
--lib # Specify a dir for the include path for source files and assemblies
|
||||
--simpleresolution # Resolve assembly references using directory-based rules
|
||||
--targetprofile # Specify target framework profile: mscorlib, netcore or netstandard
|
||||
--noframework # Do not reference the default CLI assemblies by default
|
||||
--exec # Exit fsi after loading files or running the .fsx script
|
||||
#--gui+ # Execute interactions on a Windows Forms event loop
|
||||
--gui- # Disable --gui
|
||||
--quiet # Suppress fsi writing to stdout
|
||||
#--readline+ # Support TAB completion in console
|
||||
--readline- # Disable --readline
|
||||
#--quotations-debug+ # Emit debug information in quotations
|
||||
--quotations-debug- # Disable --quotations-debug
|
||||
#--shadowcopyreferences+ # Prevents references being locked by the F# Interactive process
|
||||
--shadowcopyreferences- # Disable --shadowcopyreferences
|
||||
...args
|
||||
]
|
@ -2,7 +2,7 @@
|
||||
extern "godoc" [
|
||||
--ex # Show examples in command line mode
|
||||
--html # Print HTML in command-line mode
|
||||
--httptest.serve # httptest.NewServer serves on this address and blocks
|
||||
# --httptest.serve # (this command breaks nu parser) httptest.NewServer serves on this address and blocks
|
||||
--index # Enable search index
|
||||
--index_files # Glob pattern specifying index files
|
||||
--links # Link identifiers to their declarations
|
@ -1,6 +1,6 @@
|
||||
# Display a help message
|
||||
extern "mysql" [
|
||||
--help(-\?) # Display a help message
|
||||
--help(-?) # Display a help message
|
||||
--abort-source-on-error # Abort source filename operations in case of errors
|
||||
--auto-rehash # Enable automatic rehashing
|
||||
--auto-vertical-output # Automatically switch to vertical output
|
||||
@ -11,7 +11,8 @@ extern "mysql" [
|
||||
--comments(-c) # Preserve comments in statements
|
||||
--skip-comments # Discard comments in statements
|
||||
--compress(-C) # Compress all information
|
||||
--debug(-\#) # Write a debugging log
|
||||
--debug # Write a debugging log
|
||||
# --debug(-#) # (the short flag breaks the nu parser) Write a debugging log
|
||||
--debug-check # Print some debugging information
|
||||
--debug-info(-T) # Prints debugging information and memory and CPU usage
|
||||
--disable-named-commands # Disable named commands
|
||||
@ -59,7 +60,7 @@ extern "mysql" [
|
||||
|
||||
# Enable or disable LOCAL capability for LOAD DATA INFILE
|
||||
extern "mysql 0 1" [
|
||||
--help(-\?) # Display a help message
|
||||
--help(-?) # Display a help message
|
||||
--abort-source-on-error # Abort source filename operations in case of errors
|
||||
--auto-rehash # Enable automatic rehashing
|
||||
--auto-vertical-output # Automatically switch to vertical output
|
||||
@ -70,7 +71,8 @@ extern "mysql 0 1" [
|
||||
--comments(-c) # Preserve comments in statements
|
||||
--skip-comments # Discard comments in statements
|
||||
--compress(-C) # Compress all information
|
||||
--debug(-\#) # Write a debugging log
|
||||
--debug # Write a debugging log
|
||||
# --debug(-#) # (the short flag breaks the nu parser) Write a debugging log
|
||||
--debug-check # Print some debugging information
|
||||
--debug-info(-T) # Prints debugging information and memory and CPU usage
|
||||
--disable-named-commands # Disable named commands
|
@ -6,7 +6,6 @@ extern "xgettext" [
|
||||
--output(-o) # Write output to specified file
|
||||
--output-dir(-p) # Output files will be placed in directory DIR
|
||||
--language(-L) # Recognise the specified programming language
|
||||
--c++(-C) # Shorthand for --language=C++
|
||||
--from-code # Encoding of input files (except for Python, Tcl, Glade)
|
||||
--join-existing(-j) # Join messages with existing file
|
||||
--exclude-file(-x) # Entries from FILE
|
||||
@ -40,4 +39,7 @@ extern "xgettext" [
|
||||
--help(-h) # Display this help and exit
|
||||
--version(-V) # Output version information and exit
|
||||
...args
|
||||
]
|
||||
]
|
||||
|
||||
export alias "xgettext --c++" = ^xgettext --language=C++
|
||||
export alias "xgettext -C" = ^xgettext --language=C++
|
@ -4,7 +4,7 @@ export def "to ini" [] {
|
||||
| update value {|row|
|
||||
$row.value
|
||||
| transpose key value
|
||||
| format '{key}={value}'
|
||||
| format pattern "{key}={value}"
|
||||
| prepend $"[($row.key)]"
|
||||
| str join (char nl)
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
use argx.nu
|
||||
use ../argx/argx.nu
|
||||
|
||||
def agree [
|
||||
prompt
|
||||
|
@ -66,7 +66,7 @@ def "nu-complete git branches" [] {
|
||||
|
||||
export def gl [
|
||||
commit?: string@"nu-complete git log"
|
||||
--verbose(-v):bool
|
||||
--verbose(-v)
|
||||
--num(-n):int=32
|
||||
] {
|
||||
if ($commit|is-empty) {
|
||||
|
@ -2,7 +2,7 @@ def logtime [msg act] {
|
||||
let start = (date now)
|
||||
let result = (do $act)
|
||||
let period = ((date now) - $start
|
||||
| into duration -c ns
|
||||
| into duration --unit ns
|
||||
| into string
|
||||
| str replace ' ' '')
|
||||
|
||||
|
@ -27,7 +27,7 @@ def get_location [index: int] {
|
||||
}
|
||||
|
||||
# dark sky
|
||||
def http get_api [loc] {
|
||||
def "http get_api" [loc] {
|
||||
let apiKey = "ds_api_key"
|
||||
let options = "?lang=en&units=si&exclude=minutely,hourly,flags"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
let appID = #YOUR APP_ID
|
||||
let appID = "" #YOUR APP_ID
|
||||
|
||||
#Fetch simple anwser from WolframAlpha API
|
||||
def wolfram [...query #Your query
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Print working directory but abbreviates the home dir as ~
|
||||
def pwd-short [] {
|
||||
$env.PWD | str replace $nu.home-path '~' -s
|
||||
$env.PWD | str replace $nu.home-path '~'
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ let protections = {
|
||||
checks: [
|
||||
{
|
||||
context: 'YOUR CHECK HERE'
|
||||
app_id: YOUR APP ID HERE
|
||||
app_id: 'YOUR APP ID HERE'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env nu
|
||||
|
||||
let base_url = ""
|
||||
let page_size = 100
|
||||
let projects = $"($base_url)/api/v4/projects/"
|
||||
|
||||
|
@ -75,7 +75,7 @@ def column2 [n] {
|
||||
|
||||
#short pwd
|
||||
def pwd-short [] {
|
||||
$env.PWD | str replace $nu.home-path '~' -s
|
||||
$env.PWD | str replace $nu.home-path '~'
|
||||
}
|
||||
|
||||
#string repeat
|
||||
|
@ -31,7 +31,7 @@ module update-path {
|
||||
| parse-paths
|
||||
| append (registry query --hklm 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment'| parse-paths)
|
||||
}
|
||||
export def --env update-path [] {
|
||||
export def --env update [] {
|
||||
$env.Path = ($env.Path|append (get-paths-from-registry)|uniq)
|
||||
}
|
||||
}
|
||||
|
@ -39,4 +39,4 @@ $shell_list | each { |r|
|
||||
print $" ($count)"
|
||||
[[shell repo stars]; [($r.name) ($r.repo) ($count)]]
|
||||
}
|
||||
} | flatten | sort-by -r stars | table -n 1
|
||||
} | flatten | sort-by -r stars | table --index 1
|
||||
|
Loading…
Reference in New Issue
Block a user