checkconfigcmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Subcmd{
	FlagSet: flag.NewFlagSet("check-config", flag.ExitOnError),
	Desc:    "Validate wireleap-relay config file",
	Run: func(fm fsdir.T) {
		c := relaycfg.Defaults()
		if err := fm.Get(&c, filenames.Config); err != nil {
			fmt.Println(err)
			os.Exit(1)
		}
		if err := c.Validate(); err != nil {
			fmt.Println(err)
			os.Exit(1)
		}
		fmt.Println("OK")
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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