mirror of
https://github.com/nushell/nushell.git
synced 2025-06-01 07:35:49 +02:00
throw a nice error if the OS is not supported
This commit is contained in:
parent
c6acc47092
commit
3041adad3c
@ -465,6 +465,14 @@ export def clip [
|
||||
check-clipboard clip.exe --system $"('xorg' | pretty-command) on linux"
|
||||
$input | clip.exe
|
||||
},
|
||||
_ => {
|
||||
error make --unspanned {
|
||||
msg: $"(ansi red)unknown_operating_system(ansi reset):
|
||||
'($nu.os-info.name)' is not supported by the ('clip' | pretty-command) command.
|
||||
|
||||
please open a feature request in the [issue tracker](char lparen)https://github.com/nushell/nushell/issues/new/choose(char rparen) to add your operating system to the standard library."
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
if not $silent {
|
||||
|
Loading…
x
Reference in New Issue
Block a user