Skip to content

Commit 02bff91

Browse files
Canvis-MeCanvis-Me
andauthored
version 0.11.0: for nushell 0.98.0 (#4)
Bump the version to 0.11.0 and change `usage` to `description` due to nushell/nushell#13598 Co-authored-by: Canvis-Me <canvis@zfd.mechot.canvis>
1 parent eabf21d commit 02bff91

9 files changed

Lines changed: 60 additions & 74 deletions

File tree

Cargo.lock

Lines changed: 47 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nu_plugin_dbus"
3-
version = "0.10.0"
3+
version = "0.11.0"
44
edition = "2021"
55

66
description = "Nushell plugin for communicating with D-Bus"
@@ -14,7 +14,7 @@ repository = "https://github.com/devyn/nu_plugin_dbus"
1414

1515
[dependencies]
1616
dbus = "0.9.7"
17-
nu-plugin = "0.97.1"
18-
nu-protocol = { version = "0.97.1", features = ["plugin"] }
17+
nu-plugin = "0.98.0"
18+
nu-protocol = { version = "0.98.0", features = ["plugin"] }
1919
serde = { version = "1.0.196", features = ["derive"] }
2020
serde-xml-rs = "0.6.0"

src/commands/call.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ impl SimplePluginCommand for Call {
6565
)
6666
}
6767

68-
fn usage(&self) -> &str {
68+
fn description(&self) -> &str {
6969
"Call a method and get its response"
7070
}
7171

72-
fn extra_usage(&self) -> &str {
72+
fn extra_description(&self) -> &str {
7373
"Returns an array if the method call returns more than one value."
7474
}
7575

src/commands/get.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl SimplePluginCommand for Get {
4141
)
4242
}
4343

44-
fn usage(&self) -> &str {
44+
fn description(&self) -> &str {
4545
"Get a D-Bus property"
4646
}
4747

src/commands/get_all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl SimplePluginCommand for GetAll {
3636
)
3737
}
3838

39-
fn usage(&self) -> &str {
39+
fn description(&self) -> &str {
4040
"Get all D-Bus properties for the given object"
4141
}
4242

src/commands/introspect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ impl SimplePluginCommand for Introspect {
3131
)
3232
}
3333

34-
fn usage(&self) -> &str {
34+
fn description(&self) -> &str {
3535
"Introspect a D-Bus object"
3636
}
3737

38-
fn extra_usage(&self) -> &str {
38+
fn extra_description(&self) -> &str {
3939
"Returns information about available nodes, interfaces, methods, \
4040
signals, and properties on the given object path"
4141
}

src/commands/list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ impl SimplePluginCommand for List {
2525
)
2626
}
2727

28-
fn usage(&self) -> &str {
28+
fn description(&self) -> &str {
2929
"List all available connection names on the bus"
3030
}
3131

32-
fn extra_usage(&self) -> &str {
32+
fn extra_description(&self) -> &str {
3333
"These can be used as arguments for --dest on any of the other commands."
3434
}
3535

src/commands/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl SimplePluginCommand for Main {
1616
Signature::build(self.name()).dbus_command()
1717
}
1818

19-
fn usage(&self) -> &str {
19+
fn description(&self) -> &str {
2020
"Commands for interacting with D-Bus"
2121
}
2222

src/commands/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl SimplePluginCommand for Set {
5555
)
5656
}
5757

58-
fn usage(&self) -> &str {
58+
fn description(&self) -> &str {
5959
"Set a D-Bus property"
6060
}
6161

0 commit comments

Comments
 (0)