Nushell plugin for interacting with D-Bus
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Formatter

Ben C 73f3d693 65316ed6

+14 -13
+2 -1
README.md
··· 1 1 # nu_plugin_dbus 2 2 3 - Fork of <https://github.com/devyn/nu_plugin_dbus> that I try to keep more up-to-date. 3 + Fork of <https://github.com/devyn/nu_plugin_dbus> that I try to keep more 4 + up-to-date. 4 5 5 6 [Nushell](https://nushell.sh/) plugin for interacting with 6 7 [D-Bus](https://dbus.freedesktop.org/)
+1 -1
src/client.rs
··· 1 1 use dbus::{ 2 + Message, 2 3 arg::messageitem::MessageItem, 3 4 channel::{BusType, Channel}, 4 - Message, 5 5 }; 6 6 use nu_protocol::{LabeledError, Spanned, Value}; 7 7
+1 -1
src/commands/call.rs
··· 1 1 use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand}; 2 2 use nu_protocol::{Example, LabeledError, Signature, SyntaxShape, Type, Value}; 3 3 4 - use crate::{client::DbusClient, config::DbusClientConfig, DbusSignatureUtilExt}; 4 + use crate::{DbusSignatureUtilExt, client::DbusClient, config::DbusClientConfig}; 5 5 6 6 pub struct Call; 7 7
+1 -1
src/commands/get.rs
··· 1 1 use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand}; 2 2 use nu_protocol::{Example, LabeledError, Signature, SyntaxShape, Type, Value}; 3 3 4 - use crate::{client::DbusClient, config::DbusClientConfig, DbusSignatureUtilExt}; 4 + use crate::{DbusSignatureUtilExt, client::DbusClient, config::DbusClientConfig}; 5 5 6 6 pub struct Get; 7 7
+1 -1
src/commands/get_all.rs
··· 1 1 use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand}; 2 2 use nu_protocol::{Example, LabeledError, Signature, SyntaxShape, Type, Value}; 3 3 4 - use crate::{client::DbusClient, config::DbusClientConfig, DbusSignatureUtilExt}; 4 + use crate::{DbusSignatureUtilExt, client::DbusClient, config::DbusClientConfig}; 5 5 6 6 pub struct GetAll; 7 7
+1 -1
src/commands/introspect.rs
··· 1 1 use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand}; 2 2 use nu_protocol::{Example, LabeledError, Signature, SyntaxShape, Type, Value}; 3 3 4 - use crate::{client::DbusClient, config::DbusClientConfig, DbusSignatureUtilExt}; 4 + use crate::{DbusSignatureUtilExt, client::DbusClient, config::DbusClientConfig}; 5 5 6 6 pub struct Introspect; 7 7
+1 -1
src/commands/list.rs
··· 1 1 use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand}; 2 2 use nu_protocol::{Example, LabeledError, Signature, SyntaxShape, Type, Value}; 3 3 4 - use crate::{client::DbusClient, config::DbusClientConfig, pattern::Pattern, DbusSignatureUtilExt}; 4 + use crate::{DbusSignatureUtilExt, client::DbusClient, config::DbusClientConfig, pattern::Pattern}; 5 5 6 6 pub struct List; 7 7
+1 -1
src/commands/set.rs
··· 1 1 use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand}; 2 2 use nu_protocol::{Example, LabeledError, Signature, SyntaxShape, Type, Value}; 3 3 4 - use crate::{client::DbusClient, config::DbusClientConfig, DbusSignatureUtilExt}; 4 + use crate::{DbusSignatureUtilExt, client::DbusClient, config::DbusClientConfig}; 5 5 6 6 pub struct Set; 7 7
+3 -3
src/convert.rs
··· 1 1 use dbus::{ 2 + Message, Signature, 2 3 arg::{ 3 - messageitem::{MessageItem, MessageItemArray, MessageItemDict}, 4 4 ArgType, RefArg, 5 + messageitem::{MessageItem, MessageItemArray, MessageItemDict}, 5 6 }, 6 - Message, Signature, 7 7 }; 8 8 use nu_protocol::{LabeledError, Record, Span, Value}; 9 9 use std::str::FromStr; ··· 87 87 ), 88 88 89 89 ArgType::DictEntry => { 90 - return Err("Encountered dictionary entry outside of dictionary".into()) 90 + return Err("Encountered dictionary entry outside of dictionary".into()); 91 91 } 92 92 ArgType::Invalid => return Err("Encountered invalid D-Bus value".into()), 93 93 })
+1 -1
src/introspection.rs
··· 1 - use nu_protocol::{record, Span, Value}; 1 + use nu_protocol::{Span, Value, record}; 2 2 use serde::Deserialize; 3 3 use serde_xml_rs::SerdeXml; 4 4
+1 -1
src/main.rs
··· 1 - use nu_plugin::{serve_plugin, MsgPackSerializer, Plugin, PluginCommand}; 1 + use nu_plugin::{MsgPackSerializer, Plugin, PluginCommand, serve_plugin}; 2 2 use nu_protocol::SyntaxShape; 3 3 4 4 mod client;