feat(shell): show introduction is modify
This commit is contained in:
parent
f1dd2d5675
commit
c0cfa0da56
|
@ -36,5 +36,7 @@ void shellAutoExit();
|
||||||
// callback autotab module
|
// callback autotab module
|
||||||
void callbackAutoTab(char* sqlstr, TAOS* pSql, bool usedb);
|
void callbackAutoTab(char* sqlstr, TAOS* pSql, bool usedb);
|
||||||
|
|
||||||
|
// introduction
|
||||||
|
void printfIntroduction();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -328,8 +328,8 @@ int cntDel = 0; // delete byte count after next press tab
|
||||||
|
|
||||||
// show auto tab introduction
|
// show auto tab introduction
|
||||||
void printfIntroduction() {
|
void printfIntroduction() {
|
||||||
printf(" ********************* How to Use TAB in TAOS Shell ******************************\n");
|
printf(" **************************** How to Use TAB Key ********************************\n");
|
||||||
printf(" * Taos shell supports pressing TAB key to complete word. You can try it. *\n");
|
printf(" * TDengine Command Line supports pressing TAB key to complete word. *\n");
|
||||||
printf(" * Press TAB key anywhere, You'll get surprise. *\n");
|
printf(" * Press TAB key anywhere, You'll get surprise. *\n");
|
||||||
printf(" * KEYBOARD SHORTCUT: *\n");
|
printf(" * KEYBOARD SHORTCUT: *\n");
|
||||||
printf(" * [ TAB ] ...... Complete the word or show help if no input *\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_DATATYPE, data_types, sizeof(data_types) /sizeof(char *));
|
||||||
GenerateVarType(WT_VAR_KEYTAGS, key_tags, sizeof(key_tags) /sizeof(char *));
|
GenerateVarType(WT_VAR_KEYTAGS, key_tags, sizeof(key_tags) /sizeof(char *));
|
||||||
|
|
||||||
printfIntroduction();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1105,6 +1105,7 @@ int32_t shellExecute() {
|
||||||
#ifdef WEBSOCKET
|
#ifdef WEBSOCKET
|
||||||
if (!shell.args.restful && !shell.args.cloud) {
|
if (!shell.args.restful && !shell.args.cloud) {
|
||||||
#endif
|
#endif
|
||||||
|
printfIntroduction();
|
||||||
shellGetGrantInfo();
|
shellGetGrantInfo();
|
||||||
#ifdef WEBSOCKET
|
#ifdef WEBSOCKET
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue