提交 c0cfa0da 编写于 作者: A Alex Duan

feat(shell): show introduction is modify

上级 f1dd2d56
...@@ -36,5 +36,7 @@ void shellAutoExit(); ...@@ -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 ...@@ -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() { ...@@ -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() { ...@@ -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
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册