Remove X11 requirement

This commit is contained in:
Jonathan Turner
2019-08-23 15:29:08 +12:00
parent 4f52eb0a6e
commit 6354e0cc55
9 changed files with 176 additions and 139 deletions

View File

@ -184,7 +184,6 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
whole_stream_command(SkipWhile),
per_item_command(Enter),
whole_stream_command(Exit),
whole_stream_command(Clip),
whole_stream_command(Autoview),
per_item_command(Cpy),
whole_stream_command(Date),
@ -196,6 +195,13 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
whole_stream_command(Version),
whole_stream_command(Which),
]);
#[cfg(feature = "clipboard")]
{
context.add_commands(vec![whole_stream_command(
crate::commands::clip::clipboard::Clip,
)]);
}
}
let _ = load_plugins(&mut context);