Lines Matching refs:cmdLine
687 std::string cmdLine = kv_pair.first + " " + kv_pair.second.argsFormat; in printUsage() local
688 std::cout << std::setw(kCommandLength) << cmdLine; in printUsage()
689 if (cmdLine.size() > kCommandLength) { in printUsage()
698 const std::vector<std::string> &cmdLine, in parseCommand() argument
700 if (cmdLine.empty() || in parseCommand()
701 supportedCommandMap.find(cmdLine[0]) == supportedCommandMap.end()) { in parseCommand()
704 auto cmdInfo = supportedCommandMap.at(cmdLine[0]); in parseCommand()
705 return cmdLine.size() == cmdInfo.numOfArgs ? cmdInfo.cmd : unsupported; in parseCommand()
708 void executeCommand(std::vector<std::string> cmdLine) { in executeCommand() argument
709 switch (parseCommand(cmdLine, kAllCommands)) { in executeCommand()
711 onEndpointConnected(cmdLine[1]); in executeCommand()
715 changeSetting(cmdLine[1], false); in executeCommand()
723 onEndpointDisconnected(cmdLine[1]); in executeCommand()
727 changeSetting(cmdLine[1], true); in executeCommand()
744 readNanoappHeaders(nanoapps, cmdLine[1]); in executeCommand()
752 loadNanoapp(cmdLine[1]); in executeCommand()
764 sendMessageToNanoapp(cmdLine[1], cmdLine[2], cmdLine[3]); in executeCommand()
768 unloadNanoapp(cmdLine[1]); in executeCommand()
812 auto cmdLine = getCommandLine(); in connectToHal() local
813 if (cmdLine.empty()) { in connectToHal()
816 if (cmdLine.size() == 1 && cmdLine[0] == "exit") { in connectToHal()
820 switch (parseCommand(cmdLine, supportedCommandMap)) { in connectToHal()
823 createHostEndpointInfo(/* hexEndpointId= */ cmdLine[1]); in connectToHal()
838 verifyAndConvertEndpointHexId(/* number= */ cmdLine[1]); in connectToHal()
845 /* hexHostEndpointId= */ cmdLine[1], in connectToHal()
846 /* appIdOrName= */ cmdLine[2], /* hexPayload= */ cmdLine[3]); in connectToHal()
848 /* operation= */ "sending a message to " + cmdLine[2], in connectToHal()
866 std::vector<std::string> cmdLine{}; in main() local
868 cmdLine.emplace_back(argv[i]); in main()
871 if (cmdLine.size() == 1 && cmdLine[0] == "connect") { in main()
875 executeCommand(cmdLine); in main()