MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / _process_callbacks

Method _process_callbacks

simcore/framework/src/cli/cli.hpp:6487–6508  ·  view source on GitHub ↗

Process callbacks. Runs on *all* subcommands.

Source from the content-addressed store, hash-verified

6485
6486 /// Process callbacks. Runs on *all* subcommands.
6487 void _process_callbacks() {
6488 for (App_p &sub : subcommands_) {
6489 // process the priority option_groups first
6490 if (sub->get_name().empty() && sub->parse_complete_callback_) {
6491 if (sub->count_all() > 0) {
6492 sub->_process_callbacks();
6493 sub->run_callback();
6494 }
6495 }
6496 }
6497
6498 for (const Option_p &opt : options_) {
6499 if (opt->count() > 0 && !opt->get_callback_run()) {
6500 opt->run_callback();
6501 }
6502 }
6503 for (App_p &sub : subcommands_) {
6504 if (!sub->parse_complete_callback_) {
6505 sub->_process_callbacks();
6506 }
6507 }
6508 }
6509
6510 /// Run help flag processing if any are found.
6511 ///

Callers

nothing calls this directly

Calls 6

count_allMethod · 0.80
get_callback_runMethod · 0.80
emptyMethod · 0.45
get_nameMethod · 0.45
run_callbackMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected