Revert "added ls to help output"

This reverts commit 3ce6f71757a9e96672683bb26b0a39074918ca9e.
This commit is contained in:
lucaspalomodevelop 2023-05-06 23:38:29 +02:00
parent 3ce6f71757
commit 21628a7320
2 changed files with 0 additions and 9 deletions

View File

@ -22,7 +22,6 @@ void input(int argc, char *argv[])
command.addCommand("run", runScript);
command.addCommand("help", help);
command.addCommand("ls", listScripts);
command.addCommand("add", addScript);
command.addDefaultCommand(runScript);
command.runCommand(argv[1], argc, argv);
}
@ -49,13 +48,6 @@ void listScripts(int argc, char *argv[])
}
}
// add a script to the autom directory
void addScript(int argc, char *argv[])
{
std::string scriptname = argv[2];
std::ofstream{dir + "/" + scriptname};
}
// help function for showing help message
void help(int argc, char *argv[])
{

View File

@ -3,7 +3,6 @@
#include <string>
#include <sys/stat.h>
#include <filesystem>
#include <fstream>
#include "inputparser.h"
#include "command.h"