summaryrefslogtreecommitdiffstats
path: root/src/verb/internal_execution.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-05-21 14:11:15 +0200
committerCanop <cano.petrole@gmail.com>2020-05-21 14:11:15 +0200
commit4eb2b231e5865d9925c78a10734094496588138b (patch)
tree5c29bd94f68bc3533ae9c3f79acc460d6fd9934c /src/verb/internal_execution.rs
parentd19cce6072ea285b04bca778dbd192e738ac90ae (diff)
{other-panel-file}, :copy-to-panel and :move-to-panel
Also {other-panel-directory} and {other-panel-parent}
Diffstat (limited to 'src/verb/internal_execution.rs')
-rw-r--r--src/verb/internal_execution.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/verb/internal_execution.rs b/src/verb/internal_execution.rs
index 51658f9..1a2f344 100644
--- a/src/verb/internal_execution.rs
+++ b/src/verb/internal_execution.rs
@@ -1,4 +1,8 @@
-use {super::*, crate::errors::ConfError};
+use {
+ super::*,
+ crate::errors::ConfError,
+ std::path::PathBuf,
+};
/// A verb execution definition based on an internal
#[derive(Debug, Clone)]
@@ -23,7 +27,11 @@ impl InternalExecution {
arg: None,
}
}
- pub fn check_args(&self, invocation: &VerbInvocation) -> Option<String> {
+ pub fn check_args(
+ &self,
+ invocation: &VerbInvocation,
+ _other_path: &Option<PathBuf>,
+ ) -> Option<String> {
if invocation.args.is_some() && !self.internal.accept_path() {
Some(format!("{} doesn't take arguments", invocation.name))
} else {