fix namespace

This commit is contained in:
lucaspalomodevelop 2023-10-29 21:25:03 +01:00
parent 179f7b4107
commit fc4a4dbf46

View File

@ -10,18 +10,23 @@
#include <iterator>
#include "../patterns/singleton.hpp"
struct commandInfo
namespace lpstd
{
namespace classes
{
struct commandInfo
{
std::string name;
std::string description;
void (*func)();
std::vector<std::string> args;
};
};
class Command : public lpstd::Singleton<Command>
{
class Command : public lpstd::Singleton<Command>
{
private:
private:
std::list<commandInfo> commands = {};
std::string defaultCommandName = "help";
@ -29,7 +34,7 @@ private:
description : "",
func : nullptr};
public:
public:
Command(/* args */)
{
}
@ -170,6 +175,9 @@ public:
}
std::cout << "Command not found" << std::endl;
}
};
};
} // namespace classes
} // namespace lpstd
#endif // __LPSTD_COMMAND_H__