The mgr daemon binary and built-in modules import CLICommand,
CLIReadCommand, and CLIWriteCommand by name. Adding aliases so existing
code continues to work while the new CLICommandBase name is introduced.
Signed-off-by: David Galloway <david.galloway@ibm.com>
})
+# Backward-compatible alias: the mgr daemon binary imports CLICommand by name
+CLICommand = CLICommandBase
+# Backward-compatible aliases for built-in modules that import these names
+CLIReadCommand = CLICommandBase.Read
+CLIWriteCommand = CLICommandBase.Write
+
+
def CLICheckNonemptyFileInput(desc: str) -> Callable[[HandlerFuncType], HandlerFuncType]:
def CheckFileInput(func: HandlerFuncType) -> HandlerFuncType:
@functools.wraps(func)