diff --git a/src/commands.h b/src/commands.h index 8042f8c..9b74c2a 100644 --- a/src/commands.h +++ b/src/commands.h @@ -2,49 +2,59 @@ #define COMMANDS_H #include +#include "../lib/lpstd/lpstd.hpp" -namespace commands +using namespace lpstd::exceptions; + + namespace commands { void add(int argc, char *argv[]) { std::cout << "add" << std::endl; + throw NotImplementedException(); } void list(int argc, char *argv[]) { std::cout << "list" << std::endl; + throw NotImplementedException(); } void view(int argc, char *argv[]) { std::cout << "view" << std::endl; + throw NotImplementedException(); } void edit(int argc, char *argv[]) { std::cout << "edit" << std::endl; + throw NotImplementedException(); } void remove(int argc, char *argv[]) { std::cout << "remove" << std::endl; + throw NotImplementedException(); } void search(int argc, char *argv[]) { std::cout << "search" << std::endl; + throw NotImplementedException(); } // not implemented void collect(int argc, char *argv[]) { - // lpstd::NotImplementedException(); std::cout << "collect" << std::endl; + throw NotImplementedException(); } void help(int argc, char *argv[]) { std::cout << "help" << std::endl; + throw NotImplementedException(); } } // namespace commands diff --git a/src/main.h b/src/main.h index 13a3d44..77dfbeb 100644 --- a/src/main.h +++ b/src/main.h @@ -3,5 +3,5 @@ #include "./command.h" #include "./commands.h" -Setup setup = Setup(); +Setup setup; Command command; \ No newline at end of file