mirror of
https://github.com/Yet-Another-DreamTeam/quicknote.git
synced 2026-03-13 08:09:41 +00:00
This commit is contained in:
parent
362bad642f
commit
3dbf5e95c3
8
.gitignore
vendored
8
.gitignore
vendored
@ -32,4 +32,10 @@
|
||||
*.app
|
||||
|
||||
# VSCode
|
||||
.vscode
|
||||
.vscode
|
||||
|
||||
# lpstd
|
||||
lib/lpstd/
|
||||
|
||||
#
|
||||
*.drawio
|
||||
@ -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:
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -3,5 +3,5 @@
|
||||
#include "./command.h"
|
||||
#include "./commands.h"
|
||||
|
||||
Setup setup;
|
||||
Setup setup = Setup();
|
||||
Command command;
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user