Tyler Chatow | a79419d | 2020-08-12 20:12:11 -0700 | [diff] [blame] | 1 | #include "aos/init.h" |
| 2 | #include "gflags/gflags.h" |
| 3 | #include "starterd_lib.h" |
| 4 | |
| 5 | DEFINE_string(config, "./config.json", "File path of aos configuration"); |
| 6 | |
| 7 | int main(int argc, char **argv) { |
| 8 | aos::InitGoogle(&argc, &argv); |
| 9 | |
| 10 | aos::FlatbufferDetachedBuffer<aos::Configuration> config = |
| 11 | aos::configuration::ReadConfig(FLAGS_config); |
| 12 | |
| 13 | const aos::Configuration *config_msg = &config.message(); |
| 14 | |
| 15 | aos::starter::Starter starter(config_msg); |
| 16 | |
| 17 | starter.Run(); |
| 18 | |
| 19 | return 0; |
| 20 | } |