CLI11 provides CLI::App::pre_callback() which allows injecting a code after parsing and before callbacks.
The gRPC client for the xArmAPI service can be initialized with this since it is required for all the subcommands in xarm-commander – otherwise, the client initializations are redundant.
CLI11 provides
CLI::App::pre_callback()
which allows injecting a code after parsing and before callbacks. The gRPC client for the xArmAPI service can be initialized with this since it is required for all the subcommands in xarm-commander – otherwise, the client initializations are redundant.Related to #32