diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index 140720af815cf317bf7665c40750b2d0fb2ebd37..03d3ab88530d8bb2b740847060461ed63125f4af 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -71,7 +71,6 @@ SWords shellCommands[] = { {"alter all dnodes \"monitor\" \"0\";", 0, 0, NULL}, {"alter all dnodes \"monitor\" \"1\";", 0, 0, NULL}, {"alter table ;", 0, 0, NULL}, - {"alter table modify column", 0, 0, NULL}, {"alter local \"resetlog\";", 0, 0, NULL}, {"alter local \"DebugFlag\" \"143\";", 0, 0, NULL}, {"alter local \"cDebugFlag\" \"143\";", 0, 0, NULL}, @@ -120,6 +119,10 @@ SWords shellCommands[] = { {"kill transaction ", 0, 0, NULL}, {"merge vgroup ", 0, 0, NULL}, {"reset query cache;", 0, 0, NULL}, + {"restore dnode ;", 0, 0, NULL}, + {"restore vnode on dnode ;", 0, 0, NULL}, + {"restore mnode on dnode ;", 0, 0, NULL}, + {"restore qnode on dnode ;", 0, 0, NULL}, {"revoke all on from ;", 0, 0, NULL}, {"revoke read on from ;", 0, 0, NULL}, {"revoke write on from ;", 0, 0, NULL}, @@ -345,12 +348,12 @@ int cntDel = 0; // delete byte count after next press tab // show auto tab introduction void printfIntroduction() { - printf(" ****************************** Tab Completion **********************************\n"); + printf(" ******************************** Tab Completion ************************************\n"); char secondLine[160] = "\0"; - sprintf(secondLine, " * The %s CLI supports tab completion for a variety of items, ", shell.info.cusName); + sprintf(secondLine, " * The %s CLI supports tab completion for a variety of items, ", shell.info.cusName); printf("%s", secondLine); int secondLineLen = strlen(secondLine); - while (84 - (secondLineLen++) > 0) { + while (87 - (secondLineLen++) > 0) { printf(" "); } printf("*\n"); @@ -382,7 +385,6 @@ void showHelp() { alter all dnodes \"resetlog\";\n\ alter all dnodes \"debugFlag\" \n\ alter table ;\n\ - alter table modify column\n\ alter local \"resetlog\";\n\ alter local \"DebugFlag\" \"143\";\n\ alter topic\n\ @@ -434,6 +436,10 @@ void showHelp() { merge vgroup ...\n\ ----- R ----- \n\ reset query cache;\n\ + restore dnode ;\n\ + restore vnode on dnode ;\n\ + restore mnode on dnode ;\n\ + restore qnode on dnode ;\n\ revoke all on from ;\n\ revoke read on from ;\n\ revoke write on from ;\n\