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

cli

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand builds the forge CLI root command.

Types

type CiError added in v0.3.0

type CiError struct {
	Code int
	Err  error
}

CiError wraps an error with an exit code for CI mode.

func (*CiError) Error added in v0.3.0

func (e *CiError) Error() string

type DatabaseSelection added in v0.3.0

type DatabaseSelection struct {
	DatabaseName       string
	UseExisting        bool
	ExistingDBName     string
	CreateNew          bool
	ExternalDBHost     string
	ExternalDBPort     int
	ExternalDBUser     string
	ExternalDBPassword string
	ExternalDBName     string
}

DatabaseSelection holds the database configuration for the project.

type InstallSnapshot added in v0.3.0

type InstallSnapshot struct {
	GoModContent []byte
	GoSumContent []byte
	ForgeDirPath string
	ForgeFiles   map[string][]byte
}

InstallSnapshot holds the state of the project before installation for rollback.

type PortSelection added in v0.3.0

type PortSelection struct {
	HTTPPort         int
	PostgresHostPort int
}

PortSelection holds the selected ports for HTTP and PostgreSQL.

Jump to

Keyboard shortcuts

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