preparing command structure and command.h

This commit is contained in:
lucaspalomodevelop 2023-10-03 13:04:29 +02:00
parent 1ad84f1559
commit 988f9bdec3
4 changed files with 26 additions and 2 deletions

View File

@ -27,7 +27,7 @@ Use the following commands to create and manage notes:
- `./quicknote edit <ID> "New content"`: Updates the content of a specific note.
- `./quicknote delete <ID>`: Deletes a specific note based on its ID.
- `./quicknote remove <ID>`: Deletes a specific note based on its ID.
- `./quicknote search "Search term"`: Searches all notes for the specified search term and displays matches.

16
src/command.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef COMMAND_H
#define COMMAND_H
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <functional>
#include <algorithm>
#include <iterator>
class Command
{
};
#endif // COMMAND_H

View File

@ -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;

View File

@ -1,4 +1,5 @@
#include <iostream>
#include "./setup.h"
Setup setup;
Setup setup;
// Command command;