/
thomas-king
/
Raze
Обзор
Документация
Войти
/
thomas-king
/
Raze
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
include/Library/Shell.h
48 строк
857 B
Ace Rodstin
Add progress indicator. Fix caching.
22 ноя 2023, 21:48
22 ноя 2023, 21:48
0b09a0a
Код
Авторство
О чём код?
// // Shell.h // Library // // Created by Ace Rodstin on 11/23/23. // Updated by Ace Rodstin on 11/24/23. // // Copyright (C) Ace Rodstin 2023. All rights reserved. // #ifndef SHELL_HEADER_FILE #define SHELL_HEADER_FILE #include <string> #include <array> #include <memory> #include "Error.h" using namespace std; namespace lib { class Shell { public: class ServiceError: Error { public: enum class Reason { EXECUTION_FAILED, RESULT_FAILURE }; ServiceError(Reason reason, string output = ""); string message() const; Reason getReason() const; string getOutput() const; private: Reason reason; string output; }; static string execute(string command); }; } #endif