cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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