From 2f590d051ada102854ed390eb9c6db4b198e6fb7 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Sat, 8 Jun 2019 04:46:47 +1200 Subject: [PATCH] Rename to clip --- src/cli.rs | 2 +- src/commands.rs | 2 +- src/commands/{clipboard.rs => clip.rs} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/commands/{clipboard.rs => clip.rs} (90%) diff --git a/src/cli.rs b/src/cli.rs index b260145f0f..78567d6e8e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -74,7 +74,7 @@ pub async fn cli() -> Result<(), Box> { context.add_sinks(vec![ sink("autoview", autoview::autoview), - sink("clipboard", clipboard::clipboard), + sink("clip", clip::clip), sink("tree", tree::tree), ]); } diff --git a/src/commands.rs b/src/commands.rs index 6151abd405..da09db4b59 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -2,7 +2,7 @@ crate mod args; crate mod autoview; crate mod cd; crate mod classified; -crate mod clipboard; +crate mod clip; crate mod command; crate mod config; crate mod first; diff --git a/src/commands/clipboard.rs b/src/commands/clip.rs similarity index 90% rename from src/commands/clipboard.rs rename to src/commands/clip.rs index 63e455973b..42e2af5027 100644 --- a/src/commands/clipboard.rs +++ b/src/commands/clip.rs @@ -2,7 +2,7 @@ use crate::commands::command::SinkCommandArgs; use crate::errors::ShellError; use clipboard::{ClipboardContext, ClipboardProvider}; -pub fn clipboard(args: SinkCommandArgs) -> Result<(), ShellError> { +pub fn clip(args: SinkCommandArgs) -> Result<(), ShellError> { let mut clip_context: ClipboardContext = ClipboardProvider::new().unwrap(); let mut new_copy_data = String::new(); if args.input.len() > 0 {