mirror of
https://github.com/Yet-Another-DreamTeam/quicknote.git
synced 2026-03-13 08:09:41 +00:00
preparing command structure and command.h
This commit is contained in:
parent
1ad84f1559
commit
988f9bdec3
@ -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
16
src/command.h
Normal 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
|
||||
@ -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;
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#include <iostream>
|
||||
#include "./setup.h"
|
||||
|
||||
Setup setup;
|
||||
Setup setup;
|
||||
// Command command;
|
||||
Loading…
x
Reference in New Issue
Block a user