cli

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package cli implements the rig command line.

Commands mirror the four steps of using rig: sync the database into table configuration, edit it, validate it, generate from it. Everything else is in service of those.

Index

Constants

This section is empty.

Variables

View Source
var ErrDiagnostics = errors.New("diagnostics reported")

ErrDiagnostics is returned when a command failed because of reported diagnostics. The diagnostics have already been printed, so the top level exits quietly rather than printing a second, redundant error.

View Source
var Version = version.String()

Version is what this build of rig calls itself. It is read from the binary's own build information rather than stamped here; see github.com/simonjanss/rig/internal/version for what a release, a `go install` and a checkout each contribute.

Functions

func Main

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

Main runs the command line and returns a process exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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