diff --git a/tool/tsh/common/db.go b/tool/tsh/common/db.go index 87e98d8fe2afb..0dc7b8f21deb7 100644 --- a/tool/tsh/common/db.go +++ b/tool/tsh/common/db.go @@ -1858,6 +1858,12 @@ const ( dbFormatYAML = "yaml" ) +const ( + // dbConnectRequireReasonTunnelFlag is the reason used in local proxy + // requirement calculation when --tunnel flag is specified. + dbConnectRequireReasonTunnelFlag = "--tunnel flag is specified" +) + var ( // dbCmdUnsupportedTemplate is the error message printed when some // database subcommands are not supported. @@ -1915,8 +1921,4 @@ Hint: use '{{ .listCommand }} -v' or '{{ .listCommand }} --format=[json|yaml]' t Hint: try selecting the {{ .kind }} with a more specific name (ex: {{ .command }} {{ .example }}). Hint: try selecting the {{ .kind }} with additional --labels or --query predicate. `)) - - // dbConnectRequireReasonTunnelFlag is the reason used in local proxy - // requirement calculation when --tunnel flag is specified. - dbConnectRequireReasonTunnelFlag = "--tunnel flag is specified" )