77 HubCommand(std::shared_ptr<ISubject> event_bus,
78 std::shared_ptr<RepositoryManager> repository_manager);
98 [[nodiscard]] std::string
getName()
const override;
120 [[nodiscard]] std::string
getUsage()
const override;
137 bool execute(
const std::vector<std::string>& args)
override;
168 bool initializeHubRepository(
const std::filesystem::path& repo_path)
const;
183 bool createHubDirectoryStructure(
const std::filesystem::path& svcs_path)
const;
200 bool createHubConfigFile(
const std::filesystem::path& svcs_path)
const;
215 bool createHubHEADFile(
const std::filesystem::path& svcs_path)
const;
230 [[nodiscard]]
bool isValidHubPath(
const std::filesystem::path& path)
const;
245 [[nodiscard]]
bool isPathAvailable(
const std::filesystem::path& path)
const;
Базовый класс для команд администрирования сервера с использованием интерфейса ICommand.
std::string getName() const override
Получает имя команды.
Определения HubCommand.cxx:37
bool execute(const std::vector< std::string > &args) override
Выполняет команду hub с предоставленными аргументами.
Определения HubCommand.cxx:49
void showHelp() const override
Отображает справочную информацию для команды hub.
Определения HubCommand.cxx:117
std::string getUsage() const override
Получает синтаксис использования для команды.
Определения HubCommand.cxx:45
std::string getDescription() const override
Получает краткое описание назначения команды.
Определения HubCommand.cxx:41
~HubCommand() override=default
Деструктор по умолчанию.
HubCommand(std::shared_ptr< ISubject > event_bus, std::shared_ptr< RepositoryManager > repository_manager)
Конструирует HubCommand с необходимыми зависимостями.
Определения HubCommand.cxx:31
ServerBaseCommand(std::shared_ptr< ISubject > event_bus, std::shared_ptr< RepositoryManager > repo_manager)
Конструирует ServerBaseCommand с необходимыми зависимостями.
Определения ServerBaseCommand.cxx:16
Компоненты командной строки для администрирования сервера.