Add Activ md libs to sparkd

WARNING: This breaks the sparkd clang build (only works with gcc)
This commit is contained in:
John Colvin authored and Mohammad Arham committed 2024-03-19 14:17:50 -04:00
1 parent 86b50e58f4
commit 51178d85d3
1 file changed
+14 -1
+14 -1
View File
@@ -35,7 +35,20 @@ int main(int argc, char **argv) {
app.add_subcommand(CLI::App_p(new cmds::KeyCmd()));
app.add_subcommand(CLI::App_p(new cmds::Web()));
// Activ md example
struct {
std::string host{"aop-ny4-replay-1w.activfinancial.com"};
std::string user{"bltdsy-replay"};
std::string password{"redhawk0281"};
CLI::App *cmd;
} activ;
activ.cmd = app.add_subcommand("activ-md", "Run Activ md demo");
activ.cmd->add_option("--host", activ.host, "Activ host (server)");
activ.cmd->add_option("--user", activ.user, "Activ login user");
activ.cmd->add_option("--pass", activ.password, "Activ login password");
activ.cmd->callback([&activ]() {
md::cme::CMEActivSession::run(activ.host, activ.user, activ.password);
});
app.add_subcommand(
"test", "Run unit test(s)"); // so this shows up in help