Skip to content

Commit

Permalink
version 0.11.0: for nushell 0.98.0 (#4)
Browse files Browse the repository at this point in the history
Bump the version to 0.11.0 and change `usage` to `description` due to
nushell/nushell#13598

Co-authored-by: Canvis-Me <[email protected]>
  • Loading branch information
Canvis-Me and Canvis-Me authored Sep 24, 2024
1 parent eabf21d commit 02bff91
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 74 deletions.
108 changes: 47 additions & 61 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nu_plugin_dbus"
version = "0.10.0"
version = "0.11.0"
edition = "2021"

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

[dependencies]
dbus = "0.9.7"
nu-plugin = "0.97.1"
nu-protocol = { version = "0.97.1", features = ["plugin"] }
nu-plugin = "0.98.0"
nu-protocol = { version = "0.98.0", features = ["plugin"] }
serde = { version = "1.0.196", features = ["derive"] }
serde-xml-rs = "0.6.0"
4 changes: 2 additions & 2 deletions src/commands/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ impl SimplePluginCommand for Call {
)
}

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/commands/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl SimplePluginCommand for Get {
)
}

fn usage(&self) -> &str {
fn description(&self) -> &str {
"Get a D-Bus property"
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/get_all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl SimplePluginCommand for GetAll {
)
}

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

Expand Down
4 changes: 2 additions & 2 deletions src/commands/introspect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ impl SimplePluginCommand for Introspect {
)
}

fn usage(&self) -> &str {
fn description(&self) -> &str {
"Introspect a D-Bus object"
}

fn extra_usage(&self) -> &str {
fn extra_description(&self) -> &str {
"Returns information about available nodes, interfaces, methods, \
signals, and properties on the given object path"
}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ impl SimplePluginCommand for List {
)
}

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/commands/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl SimplePluginCommand for Main {
Signature::build(self.name()).dbus_command()
}

fn usage(&self) -> &str {
fn description(&self) -> &str {
"Commands for interacting with D-Bus"
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl SimplePluginCommand for Set {
)
}

fn usage(&self) -> &str {
fn description(&self) -> &str {
"Set a D-Bus property"
}

Expand Down

0 comments on commit 02bff91

Please sign in to comment.