10 #include "application.hh"
13 #include "signal_handler.hh"
19 LOGGER(
dlog,
"simple_service" );
21 int main(
int argc,
char** argv )
24 scarab::signal_handler t_sig_hand(
true );
26 scarab::main_app the_main;
28 the_main.set_version( version_store::get_instance()->versions().at(
"dripline-cpp" ) );
37 auto t_service_callback = [&](){
38 auto the_service = std::make_shared< simple_service >( the_main.primary_config(), the_main.auth() );
40 the_service->execute();
42 the_return = the_service->get_return();
45 the_main.callback( t_service_callback );
47 CLI11_PARSE( the_main, argc, argv );
Sets the default service configuration.
void add_service_options(scarab::main_app &an_app)
Add service options to an app object.
static ::scarab::logger_type< ::scarab::spd_initializer_async_stdout_color_mt > dlog("agent", __FILE_NAME__, __LINE__)
void add_dripline_options(scarab::main_app &an_app)
Add dripline mesh CL options to an app object.
int main(int argc, char **argv)