tangled
alpha
login
or
join now
bwc9876.dev
/
nu_plugin_dbus
1
fork
atom
Nushell plugin for interacting with D-Bus
1
fork
atom
overview
issues
pulls
pipelines
bump nushell version to 0.91.0
Devyn Cairns
2 years ago
b250d052
e7d420db
+6
-6
2 changed files
expand all
collapse all
unified
split
Cargo.toml
src
config.rs
+3
-3
Cargo.toml
···
1
1
[package]
2
2
name = "nu_plugin_dbus"
3
3
-
version = "0.3.0"
3
3
+
version = "0.4.0"
4
4
edition = "2021"
5
5
6
6
description = "Nushell plugin for communicating with D-Bus"
···
14
14
15
15
[dependencies]
16
16
dbus = "0.9.7"
17
17
-
nu-plugin = "0.90.1"
18
18
-
nu-protocol = { version = "0.90.1", features = ["plugin"] }
17
17
+
nu-plugin = "0.91.0"
18
18
+
nu-protocol = { version = "0.91.0", features = ["plugin"] }
19
19
serde = { version = "1.0.196", features = ["derive"] }
20
20
serde-xml-rs = "0.6.0"
+3
-3
src/config.rs
···
58
58
},
59
59
r#type @ ("bus" | "peer") => {
60
60
if let Some(value) = value {
61
61
-
let address = value.as_string()?;
61
61
+
let address = value.as_str()?;
62
62
let dest = match r#type {
63
63
-
"bus" => DbusBusChoice::Bus(address),
64
64
-
"peer" => DbusBusChoice::Peer(address),
63
63
+
"bus" => DbusBusChoice::Bus(address.to_owned()),
64
64
+
"peer" => DbusBusChoice::Peer(address.to_owned()),
65
65
_ => unreachable!()
66
66
};
67
67
config.bus_choice = Spanned { item: dest, span: value.span() };