#pragma once #include #include #include #include #include namespace sh { enum class Command { exit, echo, type, unknown }; inline const std::mapcommandMap { {"exit", Command::exit}, {"echo", Command::echo}, {"type", Command::type} }; Command getCommand(std::string_view input); std::optional isExec(const std::string& input); void printType(const std::string& input); }