1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-03 07:37:47 +00: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:
Auca Coyan 2024-03-10 16:05:01 -03:00 committed by GitHub
parent 1ccc379f38
commit bc6273d971
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 232 additions and 219 deletions

View file

@ -0,0 +1,119 @@
# Display a help message
extern "mysql" [
--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
--batch(-B) # Batch mode results
--binary-mode # Binary input mode
--column-names # Write column names in results
--column-type-info(-m) # Display result set metadata
--comments(-c) # Preserve comments in statements
--skip-comments # Discard comments in statements
--compress(-C) # Compress all information
--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
--force(-f) # Continue even if an SQL error occurs
--html(-H) # Produce HTML output
--ignore-spaces(-i) # Ignore spaces after function names
--line-numbers # Write line numbers for errors
--local-infile # Enable or disable LOCAL capability for LOAD DATA INFILE
--named-commands(-G) # Enable named mysql commands
--skip-named-commands # Disable named commands
--disable-auto-rehash(-A) # Disable automatic rehashing
--no-beep(-b) # Do not beep when errors occur
--no-defaults # Do not read default options from any option file
--one-database(-o) # Ignore statements for other databases than the chosen one
--pager # Use the given command for paging query output
--skip-pager # Disable paging
--password(-p) # Password to use when connecting (empty for prompt)
--pipe(-W) # Connect to the server via a named pipe
--print-defaults # Print the program argument list
--progress-reports # Get progress reports for long running commands
--skip-progress-reports # Disable progress reports for long running commands
--quick(-q) # Print each row as it is received
--raw(-r) # Disables character escaping
--reconnect # Try to reconnect when connection gets lost
--disable-reconnect # Do not try to reconnect when connection gets lost
--i-am-a-dummy(-U) # Allow only those statements that specify which rows to modify
--secure-auth # Do not send passwords to the server in old format
--show-warnings # Cause warnings to be shown
--sigint-ignore # Ignore SIGINT signals
--silent(-s) # Silent mode
--skip-column-names(-N) # Do not write column names in results
--skip-line-numbers(-L) # Do not write line numbers for errors
--ssl # Enable SSL for connection
--skip-ssl # Disable SSL for connection
--ssl-verify-server-cert # Verify servers "Common Name
--table(-t) # Display output in table format
--unbuffered(-n) # Flush the buffer after each query
--verbose(-v) # Verbose mode
--version(-V) # Display version information
--vertical(-E) # Print query output rows vertically
--wait(-w) # If the connection cannot be established, wait and retry
--xml(-X) # Produce XML output
...args
]
# Enable or disable LOCAL capability for LOAD DATA INFILE
extern "mysql 0 1" [
--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
--batch(-B) # Batch mode results
--binary-mode # Binary input mode
--column-names # Write column names in results
--column-type-info(-m) # Display result set metadata
--comments(-c) # Preserve comments in statements
--skip-comments # Discard comments in statements
--compress(-C) # Compress all information
--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
--force(-f) # Continue even if an SQL error occurs
--html(-H) # Produce HTML output
--ignore-spaces(-i) # Ignore spaces after function names
--line-numbers # Write line numbers for errors
--local-infile # Enable or disable LOCAL capability for LOAD DATA INFILE
--named-commands(-G) # Enable named mysql commands
--skip-named-commands # Disable named commands
--disable-auto-rehash(-A) # Disable automatic rehashing
--no-beep(-b) # Do not beep when errors occur
--no-defaults # Do not read default options from any option file
--one-database(-o) # Ignore statements for other databases than the chosen one
--pager # Use the given command for paging query output
--skip-pager # Disable paging
--password(-p) # Password to use when connecting (empty for prompt)
--pipe(-W) # Connect to the server via a named pipe
--print-defaults # Print the program argument list
--progress-reports # Get progress reports for long running commands
--skip-progress-reports # Disable progress reports for long running commands
--quick(-q) # Print each row as it is received
--raw(-r) # Disables character escaping
--reconnect # Try to reconnect when connection gets lost
--disable-reconnect # Do not try to reconnect when connection gets lost
--i-am-a-dummy(-U) # Allow only those statements that specify which rows to modify
--secure-auth # Do not send passwords to the server in old format
--show-warnings # Cause warnings to be shown
--sigint-ignore # Ignore SIGINT signals
--silent(-s) # Silent mode
--skip-column-names(-N) # Do not write column names in results
--skip-line-numbers(-L) # Do not write line numbers for errors
--ssl # Enable SSL for connection
--skip-ssl # Disable SSL for connection
--ssl-verify-server-cert # Verify servers "Common Name
--table(-t) # Display output in table format
--unbuffered(-n) # Flush the buffer after each query
--verbose(-v) # Verbose mode
--version(-V) # Display version information
--vertical(-E) # Print query output rows vertically
--wait(-w) # If the connection cannot be established, wait and retry
--xml(-X) # Produce XML output
...args
]