Revert "Refactor external command (#6083)" (#6116)

This reverts commit 0646f1118c.
This commit is contained in:
JT
2022-07-26 05:37:15 +12:00
committed by GitHub
parent 3643ee6dfd
commit 475d32045f
7 changed files with 24 additions and 60 deletions

View File

@ -37,16 +37,6 @@ pub trait Command: Send + Sync + CommandClone {
false
}
// This is an enhanced method to determine if a command is custom command or not
// since extern "foo" [] and def "foo" [] behaves differently
fn is_custom_command(&self) -> bool {
if self.get_block_id().is_some() {
true
} else {
self.is_known_external()
}
}
// Is a sub command
fn is_sub(&self) -> bool {
self.name().contains(' ')