MCPcopy Create free account
hub / github.com/SpacehuhnTech/SimpleCLI / addBoundlessCmd

Method addBoundlessCmd

src/SimpleCLI.cpp:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254Command SimpleCLI::addBoundlessCmd(const char* name, void (* callback)(cmd* c)) {
255 Command c(cmd_create_boundless(name));
256
257 c.setCallback(callback);
258 addCmd(c);
259
260 return c;
261}
262
263Command SimpleCLI::addSingleArgCmd(const char* name, void (* callback)(cmd* c)) {
264 Command c(cmd_create_single(name));

Callers

nothing calls this directly

Calls 2

cmd_create_boundlessFunction · 0.85
setCallbackMethod · 0.80

Tested by

no test coverage detected