Command for merging branches in the version control system.
More...
#include <MergeCommand.hxx>
|
| | MergeCommand (std::shared_ptr< ISubject > event_bus, std::shared_ptr< RepositoryManager > repo_manager) |
| | Constructs a MergeCommand with event bus and repository manager.
|
|
| ~MergeCommand () override=default |
| | Destructor.
|
| std::string | getName () const override |
| | Gets the command name.
|
| std::string | getDescription () const override |
| | Gets the command description.
|
| std::string | getUsage () const override |
| | Gets the command usage syntax.
|
| bool | execute (const std::vector< std::string > &args) override |
| | Executes the merge command with given arguments.
|
| void | showHelp () const override |
| | Displays help information for the command.
|
| Public Member Functions inherited from svcs::cli::ICommand |
| virtual | ~ICommand ()=default |
| | Virtual destructor.
|
Command for merging branches in the version control system.
◆ MergeCommand()
| svcs::cli::MergeCommand::MergeCommand |
( |
std::shared_ptr< ISubject > | event_bus, |
|
|
std::shared_ptr< RepositoryManager > | repo_manager ) |
Constructs a MergeCommand with event bus and repository manager.
- Parameters
-
| event_bus | The event bus for notifications |
| repo_manager | The repository manager for merge operations |
◆ execute()
| bool svcs::cli::MergeCommand::execute |
( |
const std::vector< std::string > & | args | ) |
|
|
overridevirtual |
Executes the merge command with given arguments.
- Parameters
-
| args | Command line arguments |
- Returns
- true if execution succeeded, false otherwise
Implements svcs::cli::ICommand.
◆ getDescription()
| std::string svcs::cli::MergeCommand::getDescription |
( |
| ) |
const |
|
nodiscardoverridevirtual |
Gets the command description.
- Returns
- A brief description of the command
Implements svcs::cli::ICommand.
◆ getName()
| std::string svcs::cli::MergeCommand::getName |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ getUsage()
| std::string svcs::cli::MergeCommand::getUsage |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ showHelp()
| void svcs::cli::MergeCommand::showHelp |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: