only major difference was that clap now does not allow invalid utf8 by
default, but that's necessary for our 'cmd' parameter so add that
(also includes a rustfmt fixup)
Acked-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
anyhow = "1"
mio = { version = "0.8", features = [ "net", "os-ext" ] }
ureq = { version = "2.4", default-features = false, features = [ "gzip" ] }
-clap = "2.33"
+clap = "3"
proxmox-io = "1"
proxmox-lang = "1.1"
-proxmox-sys = "0.3"
+proxmox-sys = "0.4"
use proxmox_io::ByteBuffer;
use proxmox_lang::error::io_err_other;
-use proxmox_sys::{
- linux::pty::{make_controlling_terminal, PTY},
-};
+use proxmox_sys::linux::pty::{make_controlling_terminal, PTY};
const MSG_TYPE_DATA: u8 = 0;
const MSG_TYPE_RESIZE: u8 = 1;
.required(true),
)
.arg(Arg::with_name("perm").takes_value(true).long("perm"))
- .arg(Arg::with_name("cmd").multiple(true).required(true))
+ .arg(
+ Arg::with_name("cmd")
+ .allow_invalid_utf8(true)
+ .multiple(true)
+ .required(true),
+ )
.get_matches();
let port: u64 = matches