Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Overview

Package cli implements the driftgate command line.

Index

Constants

View Source
const (
	ExitClean  = 0
	ExitDrift  = 1
	ExitConfig = 2
	ExitEnv    = 3
)

Exit codes (docs/commands.md#exit-codes).

Variables

View Source
var (
	Version = "dev"
	Commit  = "unknown"
	Date    = "unknown"
)

Build information, set with -ldflags at release time.

Functions

func Main

func Main(args []string, stdout, stderr io.Writer) int

Main runs the command line and returns the exit code.

func Run

func Run()

Run is the entry point for main.

Types

This section is empty.

Jump to

Keyboard shortcuts

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