Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCommand ¶
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.
Click to show internal directories.
Click to hide internal directories.