cli

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package cli implements the command-line interface for Ralph using Cobra.

This file adds the `ralph completion <shell>` command that emits shell completion scripts for bash, zsh, fish, and powershell.

Package cli — `ralph doctor` checks the local environment for the dependencies Ralph relies on (Go binary's git, the Copilot CLI, and a writable working directory). It exits with a non-zero code when any required check fails.

Package cli — `ralph reset` clears Ralph state files (currently the checkpoint). It is a small convenience around checkpoint.Delete.

Package cli — `ralph resume <checkpoint>` continues a previously checkpointed loop. It reads the checkpoint, copies most of its values into LoopConfig (so flags can override), and starts the engine with the saved iteration counter and carry-context summary.

Package cli implements the command-line interface for Ralph using Cobra.

This package defines every Ralph subcommand (run, resume, reset, doctor, version) and wires their flags into a core.LoopConfig before delegating to the loop engine.

Package cli implements the command-line interface for Ralph using Cobra.

This file implements the `ralph run` command, including flag wiring, event display, and loop lifecycle management. Checkpoint/resume logic lives in resume.go; environment checks in doctor.go.

Package cli implements the command-line interface for Ralph using Cobra.

This file implements the `ralph version` command for displaying version information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command and returns any error.

Types

type ExitError

type ExitError struct {
	Err  error
	Code int
}

ExitError carries an exit code that main can translate to the process exit status while still letting Cobra/normal control flow run deferred cleanup.

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) Unwrap

func (e *ExitError) Unwrap() error

Jump to

Keyboard shortcuts

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