This repository was archived by the owner on Feb 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
71 lines (69 loc) · 2.12 KB
/
main.cpp
File metadata and controls
71 lines (69 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include<iostream>
#include<vector>
#include"header.h"
#include <cstring>
int main(int argc, char *argv[])
{
using namespace std;
if(argc == 1) {
begin:
asciiArtedName();
if(dotSymFileChecker())
{
cout << endl;
showTable();
start:
string input;
cout << "Enter your command >> ";
cin >> input;
if(input == "insert") insert();
else if(input == "edit-task") TaskEdit();
else if(input == "delete-task") TaskDelete();
//else if(input == "update") updateTask();
//else if(input == "show") showTask();
else if(input == "help") help();
else if(input == "version") version();
else if(input == "randomizer") randomizer();
else if(input == "edit-tag") TagEdit();
else if(input =="delete-tag") TagDelete();
else if(input == "insert-tag") TagInsert();
else if(input == "search-tagwise") TagWise();
else if(input == "show-attachment") findAttachment();
else if(input == "show-expired") showExpired();
else if(input == "history") history();
else if(input == "show-table") showTable();
else if(input == "exit") exit(0);
else if(input == "clear") system("clear"); //system("cls");
else cout << "Invalid command" << endl;
if(input != "exit" )
{
goto start;
}
}
else
{
cout << "\n\n\nNo .sym folder found in the home directory";
cout<< "\nInitializing for the first time\n";
initializer();
goto begin;
}
}
else if(argc==2) {
if (strcmp(argv[1], "--help") == 0) {
help();
}
else if(strcmp(argv[1],"--version") == 0) {
version();
}
else if(strcmp(argv[1],"--randomizer")==0)
{
randomizer();
}
else if(strcmp(argv[1],"--history")==0)
{
history();
}
}
return 0;
}
//Probably the last commit.