Merge pull request #92 from jonathandturner/clip

Rename to clip
This commit is contained in:
Jonathan Turner 2019-06-08 04:47:38 +12:00 committed by GitHub
commit 5c5082bbde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
context.add_sinks(vec![
sink("autoview", autoview::autoview),
sink("clipboard", clipboard::clipboard),
sink("clip", clip::clip),
sink("tree", tree::tree),
]);
}

View File

@ -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;

View File

@ -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 {