feat(shell): show introduction is modify

This commit is contained in:
Alex Duan 2022-09-07 14:27:55 +08:00
parent f1dd2d5675
commit c0cfa0da56
3 changed files with 5 additions and 4 deletions

View File

@ -36,5 +36,7 @@ void shellAutoExit();
// callback autotab module
void callbackAutoTab(char* sqlstr, TAOS* pSql, bool usedb);
// introduction
void printfIntroduction();
#endif

View File

@ -328,8 +328,8 @@ int cntDel = 0; // delete byte count after next press tab
// show auto tab introduction
void printfIntroduction() {
printf(" ********************* How to Use TAB in TAOS Shell ******************************\n");
printf(" * Taos shell supports pressing TAB key to complete word. You can try it. *\n");
printf(" **************************** How to Use TAB Key ********************************\n");
printf(" * TDengine Command Line supports pressing TAB key to complete word. *\n");
printf(" * Press TAB key anywhere, You'll get surprise. *\n");
printf(" * KEYBOARD SHORTCUT: *\n");
printf(" * [ TAB ] ...... Complete the word or show help if no input *\n");
@ -583,8 +583,6 @@ bool shellAutoInit() {
GenerateVarType(WT_VAR_DATATYPE, data_types, sizeof(data_types) /sizeof(char *));
GenerateVarType(WT_VAR_KEYTAGS, key_tags, sizeof(key_tags) /sizeof(char *));
printfIntroduction();
return true;
}

View File

@ -1105,6 +1105,7 @@ int32_t shellExecute() {
#ifdef WEBSOCKET
if (!shell.args.restful && !shell.args.cloud) {
#endif
printfIntroduction();
shellGetGrantInfo();
#ifdef WEBSOCKET
}