CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
SubCommand.h File Reference
#include "serial_cmd/ICommandRegistry.h"
#include "serial_cmd/Console.h"
#include <cctype>
#include <cstddef>
#include <cstdio>
#include <cstring>

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::serial

Functions

void cdc::serial::parseSubCommand (const char *args, const char *&name, size_t &name_len, const char *&rest)
 Splits args into "<sub-command> <rest>".
bool cdc::serial::subCommandEquals (const char *token, size_t token_len, const char *word)
 Case-insensitive compare of an unterminated token against a word.
void cdc::serial::printSubCommandHelp (const char *parent, const SubCommand *table)
 Prints a sub-command summary block.
void cdc::serial::dispatchSubCommand (const char *parent, const char *args, const SubCommand *table)
 Routes a sub-command line to its handler.