Skip to content

Commit

Permalink
minor: bump nu deps to v0.95
Browse files Browse the repository at this point in the history
  • Loading branch information
FMotalleb committed Jun 26, 2024
1 parent 96deb6e commit 91dfc31
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 34 deletions.
82 changes: 56 additions & 26 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ keywords = ["nushell", "clipboard", "plugin"]
homepage = "https://github.com/FMotalleb/nu_plugin_clipboard"
repository = "https://github.com/FMotalleb/nu_plugin_clipboard"
description = "A nushell plugin to copy text into clipboard or get text from it."
version = "0.94.1"
version = "0.95.0"
edition = "2021"
readme = "README.md"

[dependencies]
nu-plugin = "0.94.1"
nu-protocol = { version = "0.94.1", features = ["plugin"] }
nu-plugin = "0.95.0"
nu-protocol = { version = "0.95.0", features = ["plugin"] }
arboard = { version = "3.3.2", default_features = false }
nu-json = "0.94.1"
nu-json = "0.95.0"

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion nupm.nuon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nu_plugin_clipboard",
"version": "0.94.1",
"version": "0.95.0",
"description": "A nushell plugin to copy text into clipboard or get text from it.",
"license": "LICENSE",
"type": "custom"
Expand Down
9 changes: 6 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
mod clipboard;

pub mod utils;
use nu_plugin::{PluginCommand};
use crate::clipboard::copy::ClipboardCopy;
use crate::clipboard::paste::ClipboardPaste;
use nu_plugin::PluginCommand;

pub struct ClipboardPlugins;

impl nu_plugin::Plugin for ClipboardPlugins {
fn commands(&self) -> Vec<Box<dyn PluginCommand<Plugin=Self>>> {
fn commands(&self) -> Vec<Box<dyn PluginCommand<Plugin = Self>>> {
vec![
Box::new(ClipboardCopy::new()),
Box::new(ClipboardPaste::new()),
]
}
}

fn version(&self) -> String {
env!("CARGO_PKG_VERSION").into()
}
}

fn main() {
if ClipboardCopy::is_daemon() {
Expand Down

0 comments on commit 91dfc31

Please sign in to comment.