mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
added a bogus temp command so completions work better
This commit is contained in:
parent
5203c267e3
commit
6cb25c92c1
1 changed files with 22 additions and 0 deletions
22
temp.nu
22
temp.nu
|
@ -58,6 +58,28 @@ def "temp k-to-c" [
|
|||
$"($kelvin) °K is ($celcius) °C"
|
||||
}
|
||||
|
||||
def temp [] {
|
||||
$"temperature conversions(char nl)"
|
||||
char nl
|
||||
$"Usage:(char nl)"
|
||||
$" > temp ...args <subcommand> {flags}(char nl)"
|
||||
char nl
|
||||
$"Subcommands:(char nl)"
|
||||
$" temp f-to-c - converts Fahrenheit to Celcius(char nl)"
|
||||
$" temp f-to-k - converts Fahrenheit to Kelvin(char nl)"
|
||||
$" temp c-to-f - converts Celcius to Fahrenheit(char nl)"
|
||||
$" temp c-to-k - converts Celcius to Kelvin(char nl)"
|
||||
$" temp k-to-f - converts Kelvin to Fahrenheit(char nl)"
|
||||
$" temp k-to-c - converts Kelvin to Celcius(char nl)"
|
||||
char nl
|
||||
$"Parameters:(char nl)"
|
||||
$" ...args: optionally convert by column paths(char nl)"
|
||||
char nl
|
||||
$"Flags:(char nl)"
|
||||
$" -h, --help: Display this help message(char nl)"
|
||||
char nl
|
||||
}
|
||||
|
||||
temp f-to-c 100
|
||||
char nl
|
||||
temp f-to-k 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue