85 std::shared_ptr<RepositoryManager> repo_manager);
96 std::string
getName()
const override;
118 std::string
getUsage()
const override;
133 bool execute(
const std::vector<std::string>& args)
override;
160 bool handleAdd(
RemoteManager& remote_manager,
const std::vector<std::string>& args);
175 bool handleRemove(
RemoteManager& remote_manager,
const std::vector<std::string>& args);
207 bool handleRename(
RemoteManager& remote_manager,
const std::vector<std::string>& args);
Declaration of the RemoteManager class and Remote struct.
Manages the entire version control repository, acts as a Subject for event logging,...
Base class for server administration commands using ICommand interface.
Manages the repository's remote configurations.
Definition RemoteManager.hxx:79
bool execute(const std::vector< std::string > &args) override
Executes the RepoCommand logic.
Definition RepoCommand.cxx:44
std::string getName() const override
Gets the name of the command.
Definition RepoCommand.cxx:32
std::string getDescription() const override
Gets a brief description of the command.
Definition RepoCommand.cxx:36
void showHelp() const override
Displays help information for the command.
Definition RepoCommand.cxx:162
RepoCommand(std::shared_ptr< ISubject > event_bus, std::shared_ptr< RepositoryManager > repo_manager)
Constructs a RepoCommand.
Definition RepoCommand.cxx:26
std::string getUsage() const override
Gets the usage syntax of the command.
Definition RepoCommand.cxx:40
ServerBaseCommand(std::shared_ptr< ISubject > event_bus, std::shared_ptr< RepositoryManager > repo_manager)
Constructs a ServerBaseCommand with necessary dependencies.
Definition ServerBaseCommand.cxx:17
Core VCS data structures and object model.
Server administration command-line interface components.