From 8dc7b8a7cd77bd1246b0a289c6153e599c9deeff Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 3 Sep 2020 14:21:32 -0500 Subject: [PATCH] Update clipboard feature (#2491) * WIP - compiling but not working * semi-working * making progress * working except for table lines * fmt + clippy * cleaned up some comments * working line colors * fmt, clippy, updated sample config.toml * merges * shouldn't these both bet clipboard-cli? --- crates/nu-cli/src/cli.rs | 2 +- crates/nu-cli/src/commands.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index a3ce8e7f7..16cd1e7a2 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -282,7 +282,7 @@ pub fn create_default_context( whole_stream_command(UrlQuery), ]); - #[cfg(feature = "clipboard")] + #[cfg(feature = "clipboard-cli")] { context.add_commands(vec![whole_stream_command(crate::commands::clip::Clip)]); } diff --git a/crates/nu-cli/src/commands.rs b/crates/nu-cli/src/commands.rs index 7c7dceea7..96d3c8acf 100644 --- a/crates/nu-cli/src/commands.rs +++ b/crates/nu-cli/src/commands.rs @@ -18,7 +18,7 @@ pub(crate) mod cal; pub(crate) mod cd; pub(crate) mod char_; pub(crate) mod classified; -#[cfg(feature = "clipboard")] +#[cfg(feature = "clipboard-cli")] pub(crate) mod clip; pub(crate) mod command; pub(crate) mod compact;