From 988f9bdec35b74148447ffd9edad2dc7caf8f7e9 Mon Sep 17 00:00:00 2001 From: lucaspalomodevelop Date: Tue, 3 Oct 2023 13:04:29 +0200 Subject: [PATCH] preparing command structure and command.h --- README.md | 2 +- src/command.h | 16 ++++++++++++++++ src/main.cpp | 7 +++++++ src/main.h | 3 ++- 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 src/command.h diff --git a/README.md b/README.md index 9ccb48c..9bea8b4 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Use the following commands to create and manage notes: - `./quicknote edit "New content"`: Updates the content of a specific note. -- `./quicknote delete `: Deletes a specific note based on its ID. +- `./quicknote remove `: Deletes a specific note based on its ID. - `./quicknote search "Search term"`: Searches all notes for the specified search term and displays matches. diff --git a/src/command.h b/src/command.h new file mode 100644 index 0000000..dd03db5 --- /dev/null +++ b/src/command.h @@ -0,0 +1,16 @@ +#ifndef COMMAND_H +#define COMMAND_H + +#include +#include +#include +#include +#include +#include +#include + +class Command +{ +}; + +#endif // COMMAND_H \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 00ef488..db4e290 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,6 +2,13 @@ int main(int argc, char *argv[]) { + // command.addCommand("add", "add a note", add); + // command.addCommand("list", "list all notes", list); + // command.addCommand("view", "remove a note", view); + // command.addCommand("edit", "edit a note", edit); + // command.addCommand("remove", "remove a note", remove); + // command.addCommand("search", "search quicknote", search); + // command.addCommand("help", "show help", help); setup.runSetup(); std::cout << "quicknote!" << std::endl; diff --git a/src/main.h b/src/main.h index 9da570c..8a31bf8 100644 --- a/src/main.h +++ b/src/main.h @@ -1,4 +1,5 @@ #include #include "./setup.h" -Setup setup; \ No newline at end of file +Setup setup; +// Command command; \ No newline at end of file