2022-09-07 02:16:00 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can use, redistribute, and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3
|
|
|
|
|
* or later ("AGPL"), as published by the Free Software Foundation.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __SHELL_AUTO__
|
|
|
|
|
#define __SHELL_AUTO__
|
|
|
|
|
|
2023-02-20 05:41:27 +00:00
|
|
|
#include "shellInt.h"
|
|
|
|
|
|
2022-09-07 02:16:00 +00:00
|
|
|
#define TAB_KEY 0x09
|
|
|
|
|
|
|
|
|
|
// press tab key
|
|
|
|
|
void pressTabKey(SShellCmd* cmd);
|
|
|
|
|
|
|
|
|
|
// press othr key
|
|
|
|
|
void pressOtherKey(char c);
|
|
|
|
|
|
2023-01-05 13:25:31 +00:00
|
|
|
// init shell auto function , shell start call once
|
2022-09-07 02:16:00 +00:00
|
|
|
bool shellAutoInit();
|
|
|
|
|
|
|
|
|
|
// set conn
|
2023-02-15 03:21:08 +00:00
|
|
|
void shellSetConn(TAOS* conn, bool runOnce);
|
2022-09-07 02:16:00 +00:00
|
|
|
|
2023-01-05 13:25:31 +00:00
|
|
|
// exit shell auto function, shell exit call once
|
2022-09-07 02:16:00 +00:00
|
|
|
void shellAutoExit();
|
|
|
|
|
|
|
|
|
|
// callback autotab module
|
|
|
|
|
void callbackAutoTab(char* sqlstr, TAOS* pSql, bool usedb);
|
|
|
|
|
|
2022-09-07 06:27:55 +00:00
|
|
|
// introduction
|
2024-03-13 12:36:43 +00:00
|
|
|
void printfIntroduction(bool community);
|
2022-09-07 02:16:00 +00:00
|
|
|
|
2024-03-13 09:16:42 +00:00
|
|
|
// show enterprise AD at start or end
|
|
|
|
|
void showAD(bool end);
|
|
|
|
|
|
2023-02-20 05:41:27 +00:00
|
|
|
// show all commands help
|
2022-11-24 03:12:08 +00:00
|
|
|
void showHelp();
|
|
|
|
|
|
2022-09-07 02:16:00 +00:00
|
|
|
#endif
|