alibaba/kt-connect

View on GitHub
pkg/kt/command/options/preview.go

Summary

Maintainability
A
0 mins
Test Coverage
package options

func PreviewFlags() []OptionConfig {
    flags := []OptionConfig{
        {
            Target:       "Expose",
            DefaultValue: "",
            Description:  "Ports to expose, use ',' separated, in [port] or [local:remote] format, e.g. 7001,8080:80",
            Required:     true,
        },
        {
            Target:       "External",
            DefaultValue: false,
            Description:  "If specified, a public, external service is created",
        },
        {
            Target:       "SkipPortChecking",
            DefaultValue: false,
            Description:  "Do not check whether specified local ports are listened",
        },
    }
    return flags
}