chore(cmd): Remove IntVar and move to Int64Var

This commit is contained in:
Hugo committed 2024-08-21 13:55:58 +01:00
1 parent 3195dcba4e
commit bf9dbd818e
6 files changed
+13 -77

No files matched your search

+6 -6
View File
@@ -76,9 +76,9 @@ type Command struct {
flagIdSuffix string
flagSecondaryIdSuffix string
flagHostAddress string
flagTargetDefaultPort int
flagTargetSessionMaxSeconds int
flagTargetSessionConnectionLimit int
flagTargetDefaultPort int64
flagTargetSessionMaxSeconds int64
flagTargetSessionConnectionLimit int64
flagControllerApiListenAddr string
flagControllerClusterListenAddr string
flagControllerPublicClusterAddr string
@@ -219,7 +219,7 @@ func (c *Command) Flags() *base.FlagSets {
Usage: "Address to use for the default host that is created. Must be a bare host or IP address, no port.",
})
f.IntVar(&base.IntVar{
f.Int64Var(&base.Int64Var{
Name: "target-default-port",
Default: 22,
Target: &c.flagTargetDefaultPort,
@@ -227,7 +227,7 @@ func (c *Command) Flags() *base.FlagSets {
Usage: "Default port to use for the default target that is created.",
})
f.IntVar(&base.IntVar{
f.Int64Var(&base.Int64Var{
Name: "target-session-connection-limit",
Target: &c.flagTargetSessionConnectionLimit,
Default: -1,
@@ -235,7 +235,7 @@ func (c *Command) Flags() *base.FlagSets {
Usage: "Maximum number of connections per session to set on the default target. -1 means unlimited.",
})
f.IntVar(&base.IntVar{
f.Int64Var(&base.Int64Var{
Name: "target-session-max-seconds",
Target: &c.flagTargetSessionMaxSeconds,
EnvVar: "BOUNDARY_DEV_TARGET_SESSION_MAX_SECONDS",