Skip to content

Commit

Permalink
move msg to const
Browse files Browse the repository at this point in the history
  • Loading branch information
greedy52 authored and github-actions committed Nov 1, 2024
1 parent d522a41 commit a99c203
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tool/tsh/common/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
)

0 comments on commit a99c203

Please sign in to comment.