cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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(version string) *cobra.Command

NewRootCommand returns the top-level `ora` cobra command with all subcommands attached.

func WithExitCodeCarrier

func WithExitCodeCarrier(ctx context.Context, c *ExitCodeCarrier) context.Context

WithExitCodeCarrier returns a context that carries c. main constructs a carrier, attaches it, runs cobra, then exits with carrier.Code so a child `claude` exit of 130 (SIGINT) becomes ora's exit too.

Types

type ExitCodeCarrier

type ExitCodeCarrier struct {
	Code int
}

ExitCodeCarrier is attached to the command context so the wrapped child's exit code can flow back to main and become ora's exit code.

Jump to

Keyboard shortcuts

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