74 [[nodiscard]]
virtual std::string
getName()
const = 0;
96 [[nodiscard]]
virtual std::string
getUsage()
const = 0;
109 virtual bool execute(
const std::vector<std::string>& args) = 0;
Interface (abstract base class) for all commands executed via the CLI.
Definition ICommand.hxx:34
virtual std::string getName() const =0
Retrieves the unique name of the command (e.g., "init").
virtual std::string getDescription() const =0
Retrieves a brief description of what the command does.
virtual bool execute(const std::vector< std::string > &args)=0
Executes the main logic of the command.
virtual void showHelp() const =0
Displays detailed help information about the command (Usage and Description).
virtual ~ICommand()=default
Virtual destructor.
virtual std::string getUsage() const =0
Retrieves the command's usage syntax.
Command-line interface components and command implementations.