#include "lib/os/os.h" #include "lib/utils/init_spark_lib.h" #include "lib/logging/logging.h" #include "server/sparkd/cmds/CmdRegistry.h" #define BEGIN_CMD #define REGISTER(CMD) bts::cmd::CmdRegistry::register_cmd (#CMD) #define END_CMD return bts::cmd::CmdRegistry::dispatch (argc,argv) // to add a command add the header here and the the REGISTER call below // don't touch this file except to add commands. #include "server/sparkd/cmds/Test.h" #include "server/sparkd/cmds/Run.h" #include "server/sparkd/cmds/Help.h" #include "server/sparkd/cmds/TestOrderman.h" #include "server/sparkd/cmds/Celoxica.h" #include "server/sparkd/cmds/Md.h" #include "server/sparkd/cmds/ConfigCheck.h" #include "server/sparkd/cmds/RunSim.h" int main( int argc, const char*argv[] ) { using namespace bts; os::set_thread_name("main"); utils::init_spark_lib(); BEGIN_CMD; REGISTER (Test); REGISTER (Help); REGISTER (Run); REGISTER (Md); REGISTER (TestOrderman); REGISTER (Celoxica); REGISTER (ConfigCheck); REGISTER (RunSim); END_CMD; utils::finit_spark_lib(); return 0; }