fix: CLI11 integration

* Run 'sparkd tests' outside of the CLI::App framework
  (delegate to 'catch', which has a solid cli).  This
  fixes a bug which prevented callers from specifying
  test tags (in the form of '[<tag>]'), as the CLI::App's
  parse method removes square brackets from cli options.

* Bind cli options to instance members of their subcommand's
  CLI::App derived class.  This seems to fix a bug which caused
  the [static instance] binding source to be destructed twice.

 * Add help text for several subcommands
This commit is contained in:
John Colvin committed 2021-01-16 00:01:15 -06:00
1 parent 45de55a552
commit ca4e477f56
61 files changed
+841 -742

No files matched your search

+2 -3
View File
@@ -56,9 +56,8 @@ static void execute() {
disp.run();
}
void Span::register_cmd(CLI::App &app) {
app.add_subcommand("span", "Test CME CORE Span integration")
->callback(execute);
Span::Span() : CLI::App("Test CME CORE Span integration", "span") {
callback(execute);
}
} // namespace bts::cmds