12 std::string_view name_)
14 , commandController(controller_)
29 if (
auto* globalCommandController =
31 return *globalCommandController;
33 return checked_cast<MSXCommandController*>(&commandController)
34 ->getGlobalCommandController();
CliComm & getCliComm() const
CommandCompleter(const CommandCompleter &)=delete
CommandController & getCommandController() const
Interpreter & getInterpreter() const final
GlobalCommandController & getGlobalCommandController() const
virtual void registerCommand(Command &command, zstring_view str)=0
(Un)register a command
virtual Interpreter & getInterpreter()=0
virtual CliComm & getCliComm()=0
virtual void unregisterCommand(Command &command, std::string_view str)=0
virtual void registerCompleter(CommandCompleter &completer, std::string_view str)=0
(Un)register a command completer, used to complete build-in Tcl cmds
virtual void unregisterCompleter(CommandCompleter &completer, std::string_view str)=0
Command(CommandController &controller, std::string_view name)
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this command.
const std::string & getName() const
This file implemented 3 utility functions: