cli

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package cli wires the markgate command tree.

Index

Constants

View Source
const DefaultKey = "default"

DefaultKey is the key used when the user omits the positional argument.

View Source
const EnvStateDir = "MARKGATE_STATE_DIR"

EnvStateDir overrides the directory that stores marker files. Precedence: --state-dir flag > this env > gate.StateDir in .markgate.yml > default (<git-dir>/markgate).

Variables

This section is empty.

Functions

func Execute

func Execute(rawVersion string)

Execute runs the root command. It never returns; the process exits with the appropriate code (0 verified, 1 not verified, 2 error).

Types

type ExitError

type ExitError struct {
	Code int
	Err  error
}

ExitError lets subcommands return a specific process exit code.

func (*ExitError) Error

func (e *ExitError) Error() string

Jump to

Keyboard shortcuts

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