cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package cli wires up the cobra command tree for EnvGuardian.

It owns flag definitions, command dispatch, and the mapping of errors to exit codes. Command logic lives in the internal packages (dotenv, keys, crypt, config) so this package stays a thin presentation layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(info BuildInfo) int

Execute runs the CLI and returns a process exit code.

Types

type BuildInfo

type BuildInfo struct {
	Version string
	Commit  string
	Date    string
}

BuildInfo carries version metadata injected at build time.

Jump to

Keyboard shortcuts

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