mirror of
https://github.com/lucaspalomodevelop/autom.git
synced 2026-03-12 23:27:21 +00:00
Revert "added ls to help output"
This reverts commit 3ce6f71757a9e96672683bb26b0a39074918ca9e.
This commit is contained in:
parent
3ce6f71757
commit
21628a7320
@ -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[])
|
||||
{
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
#include <string>
|
||||
#include <sys/stat.h>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
|
||||
#include "inputparser.h"
|
||||
#include "command.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user