|
SVCS - English Documentation
|
Command for creating central hub repositories for team collaboration. More...
#include <HubCommand.hxx>
Public Member Functions | |
| HubCommand (std::shared_ptr< ISubject > event_bus, std::shared_ptr< RepositoryManager > repository_manager) | |
| Constructs a HubCommand with necessary dependencies. | |
| ~HubCommand () override=default | |
| Default destructor. | |
| std::string | getName () const override |
| Gets the name of the command. | |
| std::string | getDescription () const override |
| Gets a brief description of the command's purpose. | |
| std::string | getUsage () const override |
| Gets the usage syntax for the command. | |
| bool | execute (const std::vector< std::string > &args) override |
| Executes the hub command with provided arguments. | |
| void | showHelp () const override |
| Displays help information for the hub command. | |
| Public Member Functions inherited from svcs::server::cli::ServerBaseCommand | |
| ServerBaseCommand (std::shared_ptr< ISubject > event_bus, std::shared_ptr< RepositoryManager > repo_manager) | |
| Constructs a ServerBaseCommand with necessary dependencies. | |
| virtual | ~ServerBaseCommand ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
| Public Member Functions inherited from svcs::cli::ICommand | |
| virtual | ~ICommand ()=default |
| Virtual destructor. | |
Additional Inherited Members | |
| Protected Member Functions inherited from svcs::server::cli::ServerBaseCommand | |
| void | notifyInfo (const std::string &message) const |
| Sends an informational notification via the event bus. | |
| void | notifyError (const std::string &message) const |
| Sends an error notification via the event bus. | |
| Protected Attributes inherited from svcs::server::cli::ServerBaseCommand | |
| std::shared_ptr< ISubject > | event_bus_ |
| Shared pointer to the event bus for system notifications. | |
| std::shared_ptr< RepositoryManager > | repo_manager_ |
| Shared pointer to the repository manager for repository operations. | |
Command for creating central hub repositories for team collaboration.
Implements the 'svcs hub' functionality to initialize bare repositories that act as central points for pushing, pulling and collaborating on code. This command is essential for setting up remote collaboration infrastructure. Inherits from ServerBaseCommand for common server command functionality.
| svcs::server::cli::HubCommand::HubCommand | ( | std::shared_ptr< ISubject > | event_bus, |
| std::shared_ptr< RepositoryManager > | repository_manager ) |
Constructs a HubCommand with necessary dependencies.
| event_bus | The event bus for notification system, used for user feedback. |
| repository_manager | The repository manager for core repository operations. |
|
overridevirtual |
Executes the hub command with provided arguments.
| args | Command line arguments passed to the hub command. |
| std::filesystem_error | If filesystem operations fail. |
| std::runtime_error | If repository initialization fails. |
Implements svcs::server::cli::ServerBaseCommand.
|
nodiscardoverridevirtual |
Gets a brief description of the command's purpose.
Implements svcs::server::cli::ServerBaseCommand.
|
nodiscardoverridevirtual |
Gets the name of the command.
Implements svcs::server::cli::ServerBaseCommand.
|
nodiscardoverridevirtual |
Gets the usage syntax for the command.
Implements svcs::server::cli::ServerBaseCommand.
|
overridevirtual |
Displays help information for the hub command.
Shows usage examples, argument descriptions, and command purpose to assist users in proper command usage.
Implements svcs::server::cli::ServerBaseCommand.