SVCS - English Documentation
Loading...
Searching...
No Matches
svcs::cli::ICommand Class Referenceabstract

Interface (abstract base class) for all commands executed via the CLI. More...

#include <ICommand.hxx>

Inheritance diagram for svcs::cli::ICommand:
svcs::cli::AddCommand svcs::cli::BaseCommand svcs::cli::BranchCommand svcs::cli::ClearCommand svcs::cli::HelpCommand svcs::cli::HistoryCommand svcs::cli::InitCommand svcs::cli::MergeCommand svcs::cli::RemoveCommand svcs::cli::SaveCommand svcs::cli::StatusCommand svcs::cli::UndoCommand svcs::cli::VersionCommand svcs::server::cli::ServerBaseCommand

Public Member Functions

virtual ~ICommand ()=default
 Virtual destructor.
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 std::string getUsage () const =0
 Retrieves the command's usage syntax.
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).

Detailed Description

Interface (abstract base class) for all commands executed via the CLI.

Every concrete command (e.g., InitCommand, CommitCommand) must inherit this interface and implement all its pure virtual methods.

Constructor & Destructor Documentation

◆ ~ICommand()

virtual svcs::cli::ICommand::~ICommand ( )
virtualdefault

Virtual destructor.

Ensures correct cleanup of derived classes via a base class pointer.

Member Function Documentation

◆ execute()

◆ getDescription()

◆ getName()

◆ getUsage()

◆ showHelp()


The documentation for this class was generated from the following file: