gowdkcmd

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MPL-2.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitCodeFor

func ExitCodeFor(err error) int

exitCodeFor maps an error to its process exit code. Errors carrying an explicit ExitCode() (the documented gowdk audit contract) use it; every other error is a generic failure (1).

func Main

func Main()

Main runs the gowdk command-line program and exits with the documented code.

func Run

func Run(args []string) error

Run executes a gowdk command without exiting the current process.

func RunWithConfig

func RunWithConfig(args []string, config *gowdk.Config, projectRoot string) error

RunWithConfig executes a command using a native project config already loaded in the current process. It is used by generated project helpers so gowdk.Config never has to cross a process boundary.

Types

type OperationError

type OperationError struct {
	Summary     string
	Diagnostics []devOverlayDiagnostic
	Cause       error
	Code        int
}

func (*OperationError) Error

func (err *OperationError) Error() string

func (*OperationError) ExitCode

func (err *OperationError) ExitCode() int

func (*OperationError) Unwrap

func (err *OperationError) Unwrap() error

Jump to

Keyboard shortcuts

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