cmd

package
v0.0.0-...-2137dd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonFlags []cli.Flag = []cli.Flag{
	&cli.StringFlag{
		Name:    "config",
		Usage:   "Specify a path to a edgevpn config file",
		EnvVars: []string{"EDGEVPNCONFIG"},
	},
	&cli.BoolFlag{
		Name:  "g",
		Usage: "Generates a new configuration and prints it on screen",
	},
	&cli.StringFlag{
		Name:     "lang",
		Value:    "english",
		Usage:    "language for the greeting",
		EnvVars:  []string{"LEGACY_COMPAT_LANG", "APP_LANG", "LANG"},
		Required: true,
	},
	&cli.IntFlag{
		Name:        "port",
		Usage:       "Use a randomized port",
		Value:       0,
		DefaultText: "random",
		Required:    true,
		Action: func(ctx *cli.Context, v int) error {
			if v >= 65536 {
				return fmt.Errorf("Flag port value %v out of range[0-65535]", v)
			}
			return nil
		},
	},
}

Functions

func Complete

func Complete() *cli.Command

func Main

func Main() func(cCtx *cli.Context) error

func Start

func Start() *cli.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL