feat: add industry edition in Taos-CLI
This commit is contained in:
parent
be44ea0a84
commit
cf6847edfd
|
@ -434,10 +434,7 @@ int32_t shellParseArgs(int32_t argc, char *argv[]) {
|
||||||
sprintf(shell.info.promptContinue, promptContinueFormat, " ");
|
sprintf(shell.info.promptContinue, promptContinueFormat, " ");
|
||||||
shell.info.promptSize = strlen(shell.info.promptHeader);
|
shell.info.promptSize = strlen(shell.info.promptHeader);
|
||||||
#ifdef TD_ENTERPRISE
|
#ifdef TD_ENTERPRISE
|
||||||
snprintf(shell.info.programVersion, sizeof(shell.info.programVersion),
|
git#else
|
||||||
"version: %s compatible_version: %s\ngitinfo: %s\ngitinfoOfInternal: %s\nbuildInfo: %s", version,
|
|
||||||
compatible_version, gitinfo, gitinfoOfInternal, buildinfo);
|
|
||||||
#else
|
|
||||||
snprintf(shell.info.programVersion, sizeof(shell.info.programVersion),
|
snprintf(shell.info.programVersion, sizeof(shell.info.programVersion),
|
||||||
"version: %s compatible_version: %s\ngitinfo: %s\nbuildInfo: %s", version, compatible_version, gitinfo,
|
"version: %s compatible_version: %s\ngitinfo: %s\nbuildInfo: %s", version, compatible_version, gitinfo,
|
||||||
buildinfo);
|
buildinfo);
|
||||||
|
|
|
@ -1201,10 +1201,10 @@ bool shellGetGrantInfo(char* buf) {
|
||||||
community = true;
|
community = true;
|
||||||
} else if (strcmp(expiretime, "unlimited") == 0) {
|
} else if (strcmp(expiretime, "unlimited") == 0) {
|
||||||
community = false;
|
community = false;
|
||||||
sprintf(buf, "Server is Enterprise %s Edition, %s and will never expire.\r\n", serverVersion, sinfo);
|
sprintf(buf, "Server is %s, %s and will never expire.\r\n", serverVersion, sinfo);
|
||||||
} else {
|
} else {
|
||||||
community = false;
|
community = false;
|
||||||
sprintf(buf, "Server is Enterprise %s Edition, %s and will expire at %s.\r\n", serverVersion, sinfo,
|
sprintf(buf, "Server is %s, %s and will expire at %s.\r\n", serverVersion, sinfo,
|
||||||
expiretime);
|
expiretime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue