wip commit
This commit is contained in:
33
src/Scripts.cpp
Normal file
33
src/Scripts.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "Scripts.h"
|
||||
#include "Static.h"
|
||||
|
||||
Scripts::Scripts()
|
||||
: Task("Scripts")
|
||||
{
|
||||
state = Running;
|
||||
}
|
||||
|
||||
void
|
||||
Scripts::loop()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
Scripts::doEval(Args& args, Print& out)
|
||||
{
|
||||
String fullCmd((const char*)args);
|
||||
String fullScript(fullCmd.substring(fullCmd.indexOf(" ") + 1));
|
||||
}
|
||||
|
||||
const std::vector<Command>&
|
||||
Scripts::commands() const
|
||||
{
|
||||
static const std::vector<Command> _commands{
|
||||
{"eval", &Scripts::doEval}
|
||||
};
|
||||
|
||||
return _commands;
|
||||
}
|
||||
|
||||
STATIC_ALLOC(Scripts);
|
||||
STATIC_TASK(Scripts);
|
||||
Reference in New Issue
Block a user