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

Method addSingleArgCmd

src/SimpleCLI.cpp:263–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263Command SimpleCLI::addSingleArgCmd(const char* name, void (* callback)(cmd* c)) {
264 Command c(cmd_create_single(name));
265
266 c.setCallback(callback);
267 addCmd(c);
268
269 return c;
270}
271
272Command SimpleCLI::addCommand(const char* name, void (* callback)(cmd* c)) {
273 return addCmd(name, callback);

Callers

nothing calls this directly

Calls 2

cmd_create_singleFunction · 0.85
setCallbackMethod · 0.80

Tested by

no test coverage detected