]> git.armaanb.net Git - gen-shell.git/blobdiff - src/main.cpp
removed libshared dependency
[gen-shell.git] / src / main.cpp
index cae64a1099b868b3759211f6609249d2b7cd57e0..8c7683315cf41af527a7e36505a70ffbc8e9380f 100644 (file)
@@ -32,7 +32,6 @@
 #include <cstdio>
 #include <stdlib.h>
 #include <unistd.h>
-#include <shared.h>
 
 #ifdef HAVE_READLINE
 #include <readline/readline.h>
@@ -95,12 +94,8 @@ static int commandLoop (bool autoClear)
   }
   else if (command != "")
   {
-    auto args = split (command, ' ');
-
     // Dispatch command.
-         if (args[0] == "<EOF>")                      status = -1;
-    else if (closeEnough ("exit",        args[0], 3)) status = -1;
-    else if (closeEnough ("quit",        args[0], 3)) status = -1;
+    if (command == "<EOF>")                      status = -1;
     else if (command != "")
     {
       command = command;
@@ -126,12 +121,9 @@ int main (int argc, const char** argv)
   {
     try
     {
-      // Get the Taskwarrior rc.tasksh.autoclear Boolean setting.
       bool autoClear = false;
       std::string input;
       std::string output;
-      execute ("task", {"_get", "rc.tasksh.autoclear"}, input, output);
-      output = lowerCase (output);
       autoClear = (output == "true\n" ||
                    output == "1\n"    ||
                    output == "y\n"    ||