deprecate std clip
This commit is contained in:
parent
494a5a5286
commit
7c5073628c
|
@ -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" => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user