Just need to write some functions...
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
#include "utils/directories.hpp"
|
||||
#include "templates.hpp"
|
||||
#include "utils/utils.hpp"
|
||||
#include "utils/readmes.hpp"
|
||||
#include "autocomplete.hpp"
|
||||
#include "utils/hash.hpp"
|
||||
|
||||
@ -107,7 +106,7 @@ int main(int argc, char* argv[]) {
|
||||
HAPPYEXIT("hash", hash_demo_raw(safearg(argc,argv,2)))
|
||||
HAPPYEXIT("makesafecmd", std::cout<<makesafecmd(safearg(argc,argv,2))<<std::endl)
|
||||
HAPPYEXIT("version", printversion())
|
||||
BOOLEXIT("test-template", test_template(safearg(argc,argv,2)))
|
||||
BOOLEXIT("test-template", gTemplateManager().test_template(safearg(argc,argv,2)))
|
||||
ASSERT_MSG(safearg(argc,argv,1) != "assert", "Hello! Here is an assert.");
|
||||
|
||||
try {
|
||||
@ -179,13 +178,13 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
if (cmd == "templates") {
|
||||
list_templates();
|
||||
gTemplateManager().list_templates();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (cmd == "create-template") {
|
||||
if (argc < 3) return die("Error: create-template requires a template name");
|
||||
create_template(argv[2]);
|
||||
gTemplateManager().create_template(argv[2]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user