1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 14:47:47 +00:00

update some scripts from dash to underscore, add 20k_club script (#271)

This commit is contained in:
Darren Schroeder 2022-08-04 15:25:52 -05:00 committed by GitHub
parent 9ae962ce41
commit ea7de87315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 206 additions and 106 deletions

View file

@ -260,8 +260,8 @@ export extern "cargo run" [
# Run the tests
export extern "cargo test" [
test-arg-seperator?: string
...args?: any # Arguments to be passed to the tests
test_arg_seperator?: string
...args: any # Arguments to be passed to the tests
--no-run # Compile, but don't run tests
--no-fail-fast # Run all tests regardless of failure
--package(-p): string@"nu-complete cargo packages" # Test only the specified packages
@ -304,8 +304,8 @@ export extern "cargo test" [
# Execute benchmarks of a package
export extern "cargo bench" [
bench-option-seperator?: string
...options?: any # Options to be passed to the benchmarks
bench_option_seperator?: string
# ...options?: any # Options to be passed to the benchmarks
--no-run # Compile, but don't run benchmarks
--no-fail-fast # Run all benchmarks regardless of failure
--package(-p): string@"nu-complete cargo packages" # Benchmark only the specified packages
@ -397,7 +397,7 @@ export extern "cargo publish" [
--locked # Require Cargo.lock is up to date
--offline # Run without accessing the network
--help(-h) # Prints help information
-Z: any # Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
-Z: any # Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
--jobs(-j): number # Number of parallel jobs to run
--keep-going # Build as many crates in the dependency graph as possible
]

View file

@ -26,9 +26,9 @@ export extern "winget install" [
--override: string, # Override arguments to be passed on to the installer
--location(-l): path, # Location to install to (if supported)
--force: bool, # Override the installer hash check
--accept-package-agreements: bool, # Accept all licence agreements for packages
--accept_package_agreements: bool, # Accept all licence agreements for packages
--header: string, # Optional Windows-Package-Manager REST source HTTP header
--accept-source-agreements: bool, # Accept all source agreements during source operations
--accept_source_agreements: bool, # Accept all source agreements during source operations
--help(-?): bool # Display the help for this command
]
@ -49,9 +49,9 @@ def "winget show" [
--override: string, # Override arguments to be passed on to the installer
--location(-l): path, # Location to install to (if supported)
--force: bool, # Override the installer hash check
--accept-package-agreements: bool, # Accept all licence agreements for packages
--accept_package_agreements: bool, # Accept all licence agreements for packages
--header: string, # Optional Windows-Package-Manager REST source HTTP header
--accept-source-agreements: bool, # Accept all source agreements during source operations
--accept_source_agreements: bool, # Accept all source agreements during source operations
--raw: bool, # Output the raw CLI output instead of structured data
--help(-?): bool, # Display the help for this command
] {
@ -109,7 +109,7 @@ export extern "winget source add" [
--arg(-a): string, # Argument given to the source
--type(-t): string@"nu-complete winget source type", # Type of the source
--header: string, # Optional Windows-Package-Manager REST source HTTP header
--accept-source-agreements: bool, # Accept all source agreements during source operations
--accept_source_agreements: bool, # Accept all source agreements during source operations
--help(-?): bool # Display the help for this command
]
@ -179,7 +179,7 @@ def "winget search" [
--count(-n): int, # Show no more than specified number of results
--exact(-e): bool, # Find package using exact match
--header: string, # Optional Windows-Package-Manager REST source HTTP header
--accept-source-agreements: bool, # Accept all source agreements during source operations
--accept_source_agreements: bool, # Accept all source agreements during source operations
--raw: bool, # Output the raw CLI output instead of structured data
--help(-?): bool # Display the help for this command
] {
@ -227,7 +227,7 @@ def "winget list" [
--count(-n): int, # Show no more than specified number of results
--exact(-e): bool, # Find package using exact match
--header: string, # Optional Windows-Package-Manager REST source HTTP header
--accept-source-agreements: bool, # Accept all source agreements during source operations
--accept_source_agreements: bool, # Accept all source agreements during source operations
--raw: bool, # Output the raw CLI output instead of structured data
--help(-?): bool # Display the help for this command
] {
@ -279,9 +279,9 @@ export extern "winget upgrade" [
--override: string, # Override arguments to be passed on to the installer
--location(-l): path, # Location to install to (if supported)
--force: bool, # Override the installer hash check
--accept-package-agreements: bool, # Accept all licence agreements for packages
--accept_package_agreements: bool, # Accept all licence agreements for packages
--header: string, # Optional Windows-Package-Manager REST source HTTP header
--accept-source-agreements: bool, # Accept all source agreements during source operations
--accept_source_agreements: bool, # Accept all source agreements during source operations
--all: bool, # Update all installed packages to latest if available
--help(-?): bool # Display the help for this command
]
@ -336,7 +336,7 @@ export extern "winget export" [
--output(-o): path, # File where the result is to be written
--source(-s): string@"nu-complete winget install source", # Export packages from the specified source
--include-versions: bool, # Include package versions in produced file
--accept-source-agreements: bool, # Accept all source agreements during source operations
--accept_source_agreements: bool, # Accept all source agreements during source operations
--help(-?): bool # Display the help for this command
]
@ -345,8 +345,8 @@ export extern "winget import" [
--import-file(-i): path, # File describing the packages to install
--ignore-unavailable: bool, # Ignore unavailable packages
--ignore-versions: bool, # Ignore package versions
--accept-package-agreements: bool, # Accept all licence agreements for packages
--accept-source-agreements: bool # Accept all source agreements during source operations
--accept_package_agreements: bool, # Accept all licence agreements for packages
--accept_source_agreements: bool # Accept all source agreements during source operations
]
def "nu-complete winget install locale" [] {