CLI2: Removed command-specific logic in addContextFilter
- This is now driven by command DNA.
This commit is contained in:
10
src/CLI2.cpp
10
src/CLI2.cpp
@@ -562,16 +562,6 @@ void CLI2::addContextFilter ()
|
||||
return;
|
||||
}
|
||||
|
||||
// Some commands operate independently of context.
|
||||
auto cmd = getCommand ();
|
||||
if (cmd == "undo" ||
|
||||
cmd == "export" ||
|
||||
cmd[0] == '_')
|
||||
{
|
||||
context.debug ("Context-free command.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Detect if UUID or ID is set, and bail out
|
||||
for (auto& a : _args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user