diff options
author | Canop <cano.petrole@gmail.com> | 2020-05-01 14:01:02 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-05-01 21:31:53 +0200 |
commit | 0199162bc8d4fee5bb7f07fbb41570df95205057 (patch) | |
tree | 74c6bb798700b7dc7cc21c0173319f6ee51ba02c /src/verb/verb_execution.rs | |
parent | cf52bbe7dc19cba78d65f431caa2af36c23da589 (diff) |
command/verb/apply refactoring
* simpler, with immutable commands
* more commands can be triggered by shortcuts
* one can apply verbs to the input (using shortcuts)
Diffstat (limited to 'src/verb/verb_execution.rs')
-rw-r--r-- | src/verb/verb_execution.rs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/verb/verb_execution.rs b/src/verb/verb_execution.rs index 229e512..4785ef9 100644 --- a/src/verb/verb_execution.rs +++ b/src/verb/verb_execution.rs @@ -1,24 +1,13 @@ - -use { - super::{ - External, - Internal, - }, -}; +use super::{External, Internal}; /// how a verb must be executed #[derive(Debug, Clone)] pub enum VerbExecution { - /// the verb execution is based on a behavior defined in code in Broot. /// Executions in conf starting with ":" are of this type. - Internal { - internal: Internal, - bang: bool, - }, + Internal { internal: Internal, bang: bool }, /// the verb execution refers to a command that will be executed by the system, /// outside of broot. External(External), } - |