Add paste command (#3694)

* Add paste command

* fix build and format failures

* Add examples

* Make tests pass

* Format

* add cfg annotation for Clip

* format code

* remove additional import for clip

* Remove test
This commit is contained in:
Elton Leander Pinto
2021-06-26 16:42:17 -04:00
committed by GitHub
parent 6202c67fe8
commit 8f39f4580a
3 changed files with 69 additions and 1 deletions

View File

@ -320,7 +320,10 @@ pub fn create_default_context(interactive: bool) -> Result<EvaluationContext, Bo
#[cfg(feature = "clipboard-cli")]
{
context.add_commands(vec![whole_stream_command(crate::commands::Clip)]);
context.add_commands(vec![
whole_stream_command(crate::commands::Clip),
whole_stream_command(crate::commands::Paste),
]);
}
}