void registerStatusCommands(CommandParser& parser) { CommandDefinition defStatusReport("status", "report"); defStatusReport .setTitle("print full status report") .addArg("format", ArgValueType::REPORT_FORMAT, Required::NO, Positional::YES); parser.addCommand(defStatusReport, &reportStatusComprehensive); CommandDefinition defStatusShow("status", "show"); defStatusShow .setTitle("print general status"); parser.addCommand(defStatusShow, bind(&reportStatusSingleSection, _1, &StatusReportOptions::wantForwarderGeneral)); parser.addAlias("status", "show", ""); CommandDefinition defChannelList("channel", "list"); defChannelList .setTitle("print channel list"); parser.addCommand(defChannelList, bind(&reportStatusSingleSection, _1, &StatusReportOptions::wantChannels)); parser.addAlias("channel", "list", ""); CommandDefinition defFibList("fib", "list"); defFibList .setTitle("print FIB entries"); parser.addCommand(defFibList, bind(&reportStatusSingleSection, _1, &StatusReportOptions::wantFib)); parser.addAlias("fib", "list", ""); CommandDefinition defCsInfo("cs", "info"); defCsInfo .setTitle("print CS information"); parser.addCommand(defCsInfo, bind(&reportStatusSingleSection, _1, &StatusReportOptions::wantCs)); parser.addAlias("cs", "info", ""); }
void registerLegacyStatusCommand(CommandParser& parser) { CommandDefinition defLegacyNfdStatus("legacy-nfd-status", ""); defLegacyNfdStatus .addArg("args", ArgValueType::ANY, Required::NO, Positional::YES); parser.addCommand(defLegacyNfdStatus, &legacyNfdStatus, AVAILABLE_IN_ALL & ~AVAILABLE_IN_HELP); }