Tidied Process class and moved Application::isRunningAsRoot() function to Process class

This commit is contained in:
Nav
2022-10-05 20:58:25 +01:00
parent f5d75f2ea6
commit 51a3d2fbbb
5 changed files with 49 additions and 21 deletions

View File

@@ -87,10 +87,6 @@ namespace Bloom
return EXIT_SUCCESS;
}
bool Application::isRunningAsRoot() {
return geteuid() == 0;
}
std::map<std::string, std::function<int()>> Application::getCommandHandlersByCommandName() {
return std::map<std::string, std::function<int()>> {
{