Interactions-HSG / xarm-grpc

A command-line interface for xArm-C++-SDK to interact with UFACTORY xArms
Eclipse Public License 2.0
5 stars 0 forks source link

gRPC client initialization with `CLI::App::pre_callback()` #34

Open iomz opened 3 years ago

iomz commented 3 years ago

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