File tree 1 file changed +9
-8
lines changed
examples/chip-tool/commands/interactive
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 25
25
#include < string>
26
26
#include < vector>
27
27
28
- constexpr char kInteractiveModePrompt [] = " >>> " ;
29
- constexpr char kInteractiveModeHistoryFileName [] = " chip_tool_history" ;
30
- constexpr char kInteractiveModeStopCommand [] = " quit()" ;
31
- constexpr char kCategoryError [] = " Error" ;
32
- constexpr char kCategoryProgress [] = " Info" ;
33
- constexpr char kCategoryDetail [] = " Debug" ;
34
- constexpr char kCategoryAutomation [] = " Automation" ;
28
+ constexpr char kInteractiveModePrompt [] = " >>> " ;
29
+ constexpr char kInteractiveModeHistoryFileName [] = " chip_tool_history" ;
30
+ constexpr char kInteractiveModeStopCommand [] = " quit()" ;
31
+ constexpr char kInteractiveModeStopAlternateCommand [] = " quit" ;
32
+ constexpr char kCategoryError [] = " Error" ;
33
+ constexpr char kCategoryProgress [] = " Info" ;
34
+ constexpr char kCategoryDetail [] = " Debug" ;
35
+ constexpr char kCategoryAutomation [] = " Automation" ;
35
36
36
37
namespace {
37
38
@@ -387,7 +388,7 @@ CHIP_ERROR InteractiveStartCommand::RunCommand()
387
388
388
389
bool InteractiveCommand::ParseCommand (char * command, int * status)
389
390
{
390
- if (strcmp (command, kInteractiveModeStopCommand ) == 0 )
391
+ if (strcmp (command, kInteractiveModeStopCommand ) == 0 || strcmp (command, kInteractiveModeStopAlternateCommand ) == 0 )
391
392
{
392
393
// If scheduling the cleanup fails, there is not much we can do.
393
394
// But if something went wrong while the application is leaving it could be because things have
You can’t perform that action at this time.
0 commit comments