From 6cb25c92c19c3c5ba64d556ccdceade6c28f7113 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Wed, 9 Jun 2021 19:56:27 -0500 Subject: [PATCH] added a bogus temp command so completions work better --- temp.nu | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/temp.nu b/temp.nu index d02d04b..574f599 100644 --- a/temp.nu +++ b/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 {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