cmd

package
v1.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: EPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	BuildTime = "unknown"
	GitCommit = "unknown"
)

Build metadata injected at link time via -ldflags (see Makefile LDFLAGS_CLI).

Functions

func Execute

func Execute() int

Execute runs the Cobra command tree and returns a process exit code.

func SetBuildInfo

func SetBuildInfo(version, buildTime, gitCommit string)

SetBuildInfo overrides build metadata (used in tests).

func ShouldRunCLI

func ShouldRunCLI(args []string) bool

ShouldRunCLI reports whether argv should dispatch to the operator CLI instead of the daemon supervisor. Daemon-only invocation is "edgelet daemon" (used by systemd and service scripts).

Types

This section is empty.

Jump to

Keyboard shortcuts

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