This commit is contained in:
lucaspalomodevelop 2023-10-03 16:27:51 +02:00
parent 362bad642f
commit 3dbf5e95c3
5 changed files with 19 additions and 4 deletions

8
.gitignore vendored
View File

@ -32,4 +32,10 @@
*.app
# VSCode
.vscode
.vscode
# lpstd
lib/lpstd/
#
*.drawio

View File

@ -8,6 +8,7 @@
#include <functional>
#include <algorithm>
#include <iterator>
#include "../lib/lpstd/lpstd.hpp"
struct commandInfo
{
@ -16,7 +17,7 @@ struct commandInfo
void (*func)(int argc, char *argv[]);
};
class Command
class Command : public lpstd::Singleton<Command>
{
private:

View File

@ -35,6 +35,13 @@ namespace commands
std::cout << "search" << std::endl;
}
// not implemented
void collect(int argc, char *argv[])
{
// lpstd::NotImplementedException();
std::cout << "collect" << std::endl;
}
void help(int argc, char *argv[])
{
std::cout << "help" << std::endl;

View File

@ -3,5 +3,5 @@
#include "./command.h"
#include "./commands.h"
Setup setup;
Setup setup = Setup();
Command command;

View File

@ -8,8 +8,9 @@
#include <sys/stat.h>
#include <filesystem>
#include <fstream>
#include "../lib/lpstd/lpstd.hpp"
class Setup
class Setup : public lpstd::Singleton<Setup>
{
private:
public: