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

Merge pull request #64 from fdncred/update_temp

added a bogus temp command so completions work better
This commit is contained in:
Darren Schroeder 2021-06-09 19:59:07 -05:00 committed by GitHub
commit 0cc76ff839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

22
temp.nu
View file

@ -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