command

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_ENV_PREFIX = "KNOT"
View Source
const CONFIG_FILE_NAME = ".knot"
View Source
const CONFIG_FILE_TYPE = "yaml"

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "knot",
		Short: "knot simplifies the deployment of development environments",
		Long: `knot is a management tool for developer environments running within a Nomad cluster.

It offers both a user-friendly web interface and a command line interface to streamline the deployment process and simplify access.`,
		Version: build.Version,
		Run: func(cmd *cobra.Command, args []string) {
			cmd.Help()
		},
	}
)

Functions

func Execute

func Execute()

func FixListenAddress added in v0.9.0

func FixListenAddress(address string) string

Types

type ServerAddr

type ServerAddr struct {
	HttpServer string
	WsServer   string
	ApiToken   string
}

func GetServerAddr

func GetServerAddr() ServerAddr

Read the server configuration information and generate the websocket address

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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