diff --git a/before_v0.60/stdlib_candidate/get-row.nu b/before_v0.60/stdlib_candidate/get-row.nu index 97b3fb4b..687a8704 100644 --- a/before_v0.60/stdlib_candidate/get-row.nu +++ b/before_v0.60/stdlib_candidate/get-row.nu @@ -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 } \ No newline at end of file diff --git a/custom-completions/ack/ack-completions.nu b/custom-completions/ack/ack-completions.nu new file mode 100644 index 00000000..076f45dd --- /dev/null +++ b/custom-completions/ack/ack-completions.nu @@ -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 +] \ No newline at end of file diff --git a/custom-completions/auto-generate/completions/as.nu b/custom-completions/as/as-completions.nu similarity index 94% rename from custom-completions/auto-generate/completions/as.nu rename to custom-completions/as/as-completions.nu index 591c86cd..39d737b4 100644 --- a/custom-completions/auto-generate/completions/as.nu +++ b/custom-completions/as/as-completions.nu @@ -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 diff --git a/custom-completions/auto-generate/completions/ack.nu b/custom-completions/auto-generate/completions/ack.nu deleted file mode 100644 index 898dbb90..00000000 --- a/custom-completions/auto-generate/completions/ack.nu +++ /dev/null @@ -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 -] \ No newline at end of file diff --git a/custom-completions/auto-generate/completions/fsharpc.nu b/custom-completions/auto-generate/completions/fsharpc.nu deleted file mode 100644 index a9c75b7e..00000000 --- a/custom-completions/auto-generate/completions/fsharpc.nu +++ /dev/null @@ -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 -] \ No newline at end of file diff --git a/custom-completions/auto-generate/completions/fsharpi.nu b/custom-completions/auto-generate/completions/fsharpi.nu deleted file mode 100644 index 47cb08db..00000000 --- a/custom-completions/auto-generate/completions/fsharpi.nu +++ /dev/null @@ -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 -] \ No newline at end of file diff --git a/custom-completions/auto-generate/completions/curl.nu b/custom-completions/curl/curl-completions.nu similarity index 95% rename from custom-completions/auto-generate/completions/curl.nu rename to custom-completions/curl/curl-completions.nu index 73e36fc5..bb025670 100644 --- a/custom-completions/auto-generate/completions/curl.nu +++ b/custom-completions/curl/curl-completions.nu @@ -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 diff --git a/custom-completions/fsharpc/fsharpc-completions.nu b/custom-completions/fsharpc/fsharpc-completions.nu new file mode 100644 index 00000000..467f339d --- /dev/null +++ b/custom-completions/fsharpc/fsharpc-completions.nu @@ -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 +] \ No newline at end of file diff --git a/custom-completions/fsharpi/fsharpi-completions.nu b/custom-completions/fsharpi/fsharpi-completions.nu new file mode 100644 index 00000000..adb9cdee --- /dev/null +++ b/custom-completions/fsharpi/fsharpi-completions.nu @@ -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 +] \ No newline at end of file diff --git a/custom-completions/auto-generate/completions/godoc.nu b/custom-completions/godoc/godoc-completions.nu similarity index 83% rename from custom-completions/auto-generate/completions/godoc.nu rename to custom-completions/godoc/godoc-completions.nu index 1e55fe91..1e328ea5 100644 --- a/custom-completions/auto-generate/completions/godoc.nu +++ b/custom-completions/godoc/godoc-completions.nu @@ -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 diff --git a/custom-completions/auto-generate/completions/mysql.nu b/custom-completions/mysql/mysql-completions.nu similarity index 95% rename from custom-completions/auto-generate/completions/mysql.nu rename to custom-completions/mysql/mysql-completions.nu index 3b3fff36..45571192 100644 --- a/custom-completions/auto-generate/completions/mysql.nu +++ b/custom-completions/mysql/mysql-completions.nu @@ -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 diff --git a/custom-completions/auto-generate/completions/xgettext.nu b/custom-completions/xgettext/xgettext-completions.nu similarity index 95% rename from custom-completions/auto-generate/completions/xgettext.nu rename to custom-completions/xgettext/xgettext-completions.nu index 427b0865..41922f0f 100644 --- a/custom-completions/auto-generate/completions/xgettext.nu +++ b/custom-completions/xgettext/xgettext-completions.nu @@ -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 -] \ No newline at end of file +] + +export alias "xgettext --c++" = ^xgettext --language=C++ +export alias "xgettext -C" = ^xgettext --language=C++ diff --git a/modules/formats/to-ini.nu b/modules/formats/to-ini.nu index fa159c66..1dbf81d7 100644 --- a/modules/formats/to-ini.nu +++ b/modules/formats/to-ini.nu @@ -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) } diff --git a/modules/git/git-v2.nu b/modules/git/git-v2.nu index d3145a00..2a7b1170 100644 --- a/modules/git/git-v2.nu +++ b/modules/git/git-v2.nu @@ -1,4 +1,4 @@ -use argx.nu +use ../argx/argx.nu def agree [ prompt diff --git a/modules/git/git.nu b/modules/git/git.nu index e48f1083..38c26747 100644 --- a/modules/git/git.nu +++ b/modules/git/git.nu @@ -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) { diff --git a/modules/log/log.nu b/modules/log/log.nu index 3c1e08b1..f445544a 100644 --- a/modules/log/log.nu +++ b/modules/log/log.nu @@ -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 ' ' '') diff --git a/modules/weather/weatherdark.nu b/modules/weather/weatherdark.nu index a1d65c8e..a508fd9f 100644 --- a/modules/weather/weatherdark.nu +++ b/modules/weather/weatherdark.nu @@ -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" diff --git a/sourced/api_wrappers/wolframalpha.nu b/sourced/api_wrappers/wolframalpha.nu index c5497650..8b6bd7fa 100644 --- a/sourced/api_wrappers/wolframalpha.nu +++ b/sourced/api_wrappers/wolframalpha.nu @@ -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 diff --git a/sourced/cool-oneliners/pwd-short.nu b/sourced/cool-oneliners/pwd-short.nu index f7ef9b94..76fe0fcd 100644 --- a/sourced/cool-oneliners/pwd-short.nu +++ b/sourced/cool-oneliners/pwd-short.nu @@ -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 '~' } diff --git a/sourced/github/branch-protections/branch-protections.nu b/sourced/github/branch-protections/branch-protections.nu index 0ff74183..8f2fefbb 100644 --- a/sourced/github/branch-protections/branch-protections.nu +++ b/sourced/github/branch-protections/branch-protections.nu @@ -5,7 +5,7 @@ let protections = { checks: [ { context: 'YOUR CHECK HERE' - app_id: YOUR APP ID HERE + app_id: 'YOUR APP ID HERE' } ] } diff --git a/sourced/gitlab/gitlab.nu b/sourced/gitlab/gitlab.nu index db499ea0..ca729397 100644 --- a/sourced/gitlab/gitlab.nu +++ b/sourced/gitlab/gitlab.nu @@ -1,5 +1,6 @@ #!/usr/bin/env nu +let base_url = "" let page_size = 100 let projects = $"($base_url)/api/v4/projects/" diff --git a/sourced/misc/nu_defs.nu b/sourced/misc/nu_defs.nu index d2b66792..6778d3c2 100644 --- a/sourced/misc/nu_defs.nu +++ b/sourced/misc/nu_defs.nu @@ -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 diff --git a/sourced/update-path.nu b/sourced/update-path.nu index e5a784c9..a8f1b9a2 100644 --- a/sourced/update-path.nu +++ b/sourced/update-path.nu @@ -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) } } diff --git a/sourced/webscraping/shell_stars.nu b/sourced/webscraping/shell_stars.nu index 9fc23685..18a3e09b 100644 --- a/sourced/webscraping/shell_stars.nu +++ b/sourced/webscraping/shell_stars.nu @@ -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