deprecate std clip

This commit is contained in:
amtoine 2023-11-19 16:19:00 +01:00
parent 494a5a5286
commit 7c5073628c
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -144,12 +144,17 @@ export def clip [
--expand (-e) # auto-expand the data given as input
--codepage (-c): int # the id of the codepage to use (only on Windows), see https://en.wikipedia.org/wiki/Windows_code_page, e.g. 65001 is for UTF-8
] {
let input = (
$in
let input = $in
print $"Warning: (char -u 26a0) (ansi yellow_bold)deprecated_command(ansi reset)"
print "| the `std clip` command is deprecated and will be removed in Nushell 0.89"
print ""
print $"(ansi cyan)help(ansi reset): please use (ansi {fg: cyan, attr: du})[`nu_plugin_clipboard`]\(https://github.com/FMotalleb/nu_plugin_clipboard\)(ansi reset)"
let input = $input
| if $expand { table --expand } else { table }
| into string
| if $no_strip {} else { ansi strip }
)
match $nu.os-info.name {
"linux" => {