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

Fix typos (#982)

This commit is contained in:
Ian Manske 2024-11-21 20:51:05 -08:00 committed by GitHub
parent fc1d1989b6
commit dee0e7efcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 838 additions and 833 deletions

View file

@ -20,9 +20,9 @@ def "nu-complete adb wait-for-transport" [] {
def "nu-complete adb reboot-type" [] {
[
bootloader
recovery
edl
bootloader
recovery
edl
sideload # Reboots into recovery and automatically starts sideload mode.
sideload-auto-reboot
" "
@ -38,7 +38,7 @@ export extern "adb" [
-H: string # name of adb server host [default=localhost]
-P: int # port of adb server [default=5037]
-L: string # listen on given socket for adb server [default=tcp:localhost:5037]
--exit-on-write-error # exit if stdout is closed
]
@ -55,7 +55,7 @@ export extern "adb connect" [
# Disconnect from given TCP/IP device [default PORT=5555], or all.
export extern "adb disconnect" [
host_port?: string # Disconnect device via TCP/IP [default PORT=5555] (disconnec all if no ip given).
host_port?: string # Disconnect device via TCP/IP [default PORT=5555] (disconnect all if no ip given).
]
# Pair with a device for secure TCP/IP communication.
@ -157,7 +157,7 @@ export extern "adb install-multi-package" [
# Remove specified application from the device
export extern "adb uninstall" [
APPLICATION_ID: string # Remove this APPLICATION_ID from the device.
-k
-k
]
# Run remote shell command (interactive shell if no command given)
@ -202,7 +202,7 @@ export extern "adb sync" [
]
# Ensure that there is a server running.
export extern "adb start-server" [ # only allowed with 'start-server' or 'server nodaemon',
export extern "adb start-server" [ # only allowed with 'start-server' or 'server nodaemon',
--one-device: string@"nu-complete adb one-device-args" #server will only connect to one USB device, specified by a serial number or USB device address.
]
@ -281,7 +281,7 @@ export extern "adb remount" [
# Reboot the device; defaults to booting system image but supports bootloader and recovery too.
export extern "adb reboot" [
type:string@"nu-complete adb reboot-type"
type:string@"nu-complete adb reboot-type"
]
# Sideload the given full OTA package
@ -301,4 +301,4 @@ export extern "adb usb" []
# Restart adbd listening on TCP on PORT.
export extern "adb tcpip" [
PORT:string
]
]

View file

@ -13,7 +13,7 @@ This CLI can:
- create a new client action
- and rename an existing client action
This `bmc` module particulary adds the completions for the [nushell](nushell.sh/) shell
This `bmc` module particularly adds the completions for the [nushell](nushell.sh/) shell
## How to install

View file

@ -17,7 +17,7 @@ export extern "bmc run" [
--version # Show version number
]
# Import a new bussiness from a token
# Import a new business from a token
export extern "bmc import" [
apiToken: string # command
--help # Show help

View file

@ -9,8 +9,8 @@ def get-recipes [] {
def "nu-complete just" [] {
get-recipes
| select recipe doc parameters
| each {|recipe|
| select recipe doc parameters
| each {|recipe|
let name = $recipe.recipe
mut desc = $recipe.doc | default " "
for $p in $recipe.parameters {
@ -33,7 +33,7 @@ def "nu-complete args" [context:string,offset:int] {
get-just-arg $name $position
}
# Provides argument of recipe $name at position $positions.
# Provides argument of recipe $name at position $positions.
def get-just-arg [name:string,position:int] {
let recipes = (
get-recipes
@ -46,7 +46,7 @@ def get-just-arg [name:string,position:int] {
} else {
$recipes
| get $position
| each {|recipe|
| each {|recipe|
let name = $recipe.name
if not ($recipe.default | is-empty) {
[[value description];
@ -63,7 +63,7 @@ def get-just-arg [name:string,position:int] {
}
}
# Veriables and Assignments are apparently the same thing...
# Variables and Assignments are apparently the same thing...
def "nu-complete just assignments" [] {
^just --dump --dump-format json
| from json
@ -121,7 +121,7 @@ export extern "just" [
--shell-arg # Invoke shell with <SHELL-ARG> as an argument
--show(-s):string@"nu-complete just" # Show information about <RECIPE>
--working-directory(-d) # Use <WORKING-DIRECTORY> as working directory. --justfile must also be set
]
]
def "nu-complete just format" [] {
[ "just", "json" ]

View file

@ -38,9 +38,9 @@ def "nu-complete kw man pages" [] {
def "nu-complete kw warnings" [] {
[
[value description];
["1" "not too often, may be relevant"]
["2" "quite often, may still be relevant"]
[value description];
["1" "not too often, may be relevant"]
["2" "quite often, may still be relevant"]
["3" "more obscure, likely ignorable"]
["12" "warns 1 and 2"]
["13" "warns 1 and 3"]
@ -59,9 +59,9 @@ def "nu-complete kw init template" [] {
def "nu-complete kw init arch" [] {
if ("arch" | path exists) {
ls arch
| where type == "dir"
| get name
ls arch
| where type == "dir"
| get name
| each {|el| $el | str replace 'arch/' ''}
} else {
[]
@ -77,8 +77,8 @@ def "nu-complete kw cores" [] {
}
def "nu-complete kw configs" [] {
^kw config -s
| lines
^kw config -s
| lines
| parse --regex '\[.*\] (?<value>[a-z_.]+)=(?<description>.+)$'
}
@ -105,7 +105,7 @@ export extern "kw version" [
...args: string
]
# Initalize kworkflow config file
# Initialize kworkflow config file
export extern "kw init" [
--template: string@"nu-complete kw init template" # Uses a template as the kworkflow.config
--arch: string@"nu-complete kw init arch" # Sets the variable arch from the newly created kworkflow.config
@ -117,12 +117,12 @@ export extern "kw init" [
# Builds the kernel
export extern "kw build" [
...flags: string
...flags: string
--info(-i) # Displays build information
--menu(-n) # Invokes the kernel menuconfig
--doc(-d) # Builds the documentation
--cpu-scaling(-S): int@"nu-complete kw cores" # Sets the number of jobs to use for building the kernel (the -j flag)
--ccache # Enable ccache
--cpu-scaling(-S): int@"nu-complete kw cores" # Sets the number of jobs to use for building the kernel (the -j flag)
--ccache # Enable ccache
--warnings(-w): string@"nu-complete kw warnings" # Sets the warning level for the kernel build
--save-log-to(-s): string # Saves the build log to a file
--llvm # Uses LLVM toolchain during compilation and linking
@ -186,14 +186,14 @@ export alias "kw s" = kw ssh
export extern "kw codestyle" [
path?: string # Which files to run checkpatch on. Defaults to the cwd
--help(-h) # Shows help page
--verbose # Verbose mode
--verbose # Verbose mode
]
export alias "kw c" = kw codestyle
export extern "kw self-update" [
--unstable(-u) # Update kw based on the unstable branch
--help(-h) # Shows help page
--help(-h) # Shows help page
--verbose # Verbose mode
]
@ -212,9 +212,9 @@ export alias "kw m" = kw maintainers
export extern "kw kernel-config-manager" [
--save: string # Creates a snapshot of the .config file with the given name
-d: string # Sets the description when using --save
--force(-f) # Supress warnings
--force(-f) # Suppress warnings
--get: string # Gets the config with the given name and overwrites the current .config file
--remove(-r): string # Removes the config with the given name
--remove(-r): string # Removes the config with the given name
--list(-l) # Lists all the configs being managed
--fetch # Fetches a .config from a target machine
--output(-o): string # Sets the output file when using --fetch
@ -256,7 +256,7 @@ export extern "kw explore" [
expr?: string # Expression to search for
--log(-l) # Search using git log with the given string
--grep(-g) # Search using grep with the given string
--all(-a) # Search using git grep with the given string
--all(-a) # Search using git grep with the given string
--only-source(-c) # Show only results from source code
--only-header(-H) # Show only results from header
-p: string # Path to where to start the search
@ -272,7 +272,7 @@ export extern "kw pomodoro" [
--tag(-g): string # Tag the pomodoro
--description(-d): string # Describe the pomodoro task
--check-timer(-c) # Check the current timer
--show-tags(-s) # Show all tags used in pomodoros
--show-tags(-s) # Show all tags used in pomodoros
--help(-h) # Shows help page
--verbose # Verbose mode
]
@ -284,7 +284,7 @@ export extern "kw report" [
--year: string="" # Shows the report for the current year if not specified <year>
--month: string="" # Shows the report for the current month if not specified <year>/<month>
--week: string="" # Shows the report for the current week if not specified <year>/<week>
--day: string="" # Shows the report for the current day if not specified <year>/<month>/<day>
--day: string="" # Shows the report for the current day if not specified <year>/<month>/<day>
--all # Shows all the data in the report
--statistics(-s) # Shows the statistics of the report
--pomodoro # Shows the pomodoro data in the report
@ -304,7 +304,7 @@ export extern "kw device" [
]
# kernel debug
export extern "kw debug" [
export extern "kw debug" [
--dmesg(-g) # Collect dmesg log.
--event(-e): string="" # Enable specific events to be traced. If no event is specified, all events will be enabled.
--ftrace(-t) # Enable ftrace.
@ -368,7 +368,7 @@ export extern "kw clear-cache" []
# drm subsystem support
export extern "kw drm" [
--local # Show all DRM drivers available in the local machine.
--local # Show all DRM drivers available in the local machine.
--remote: string # Specify the target device for the drm action, can be a remote or local machine.
--load-module: string # Allow user to specify one or more modules to load with or without parameters.
--unload-module: string # Allow users to unload one or more DRM drivers.
@ -388,8 +388,8 @@ export extern "kw vm" [
--alert: string@"nu-complete kw deploy alert" # set alert behaviour upon command completion
]
# Show kw man page
export extern "kw help" []
export alias "kw h" = kw help
export alias "kw h" = kw help

View file

@ -1,6 +1,6 @@
# authour: DWTW
def platformOveride [] {
def platformOverride [] {
[ "linux", "macos", "windows", "sunos", "osx", "android" ]
}
@ -13,7 +13,7 @@ export extern "tldr" [
string?
--list(-l) # Lists all commands in the cache
--render(-f): string # Render a specific markdown file
--platform(-f): string@platformOveride # Override the operating system
--platform(-f): string@platformOverride # Override the operating system
--language(-L): string # Override the language
--update(-u) # Update the local cache
--no-auto-update # If auto update is configured. disable it for this run