reviewcmd

package
v0.10.194 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 40 Imported by: 0

Documentation

Overview

Package reviewcmd wires the `cr review` command surface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(rootCmd *cobra.Command, opts *root.Options)

Register attaches the review command to rootCmd.

func RegisterWithFactory

func RegisterWithFactory(rootCmd *cobra.Command, opts *root.Options, factory RuntimeFactory)

RegisterWithFactory attaches the review command with an injected runtime factory.

Types

type ResponseRunner added in v0.9.190

type ResponseRunner = cmdruntime.ResponseRunner

ResponseRunner executes response-only thread lifecycle runs.

type Runner

type Runner = cmdruntime.Runner

Runner executes the configured review pipeline.

type Runtime

type Runtime = cmdruntime.Runtime

Runtime contains per-command dependencies that need cleanup after a run.

func NewRuntime added in v0.9.190

func NewRuntime(cmd *cobra.Command, opts *root.Options, cfg config.File, profile config.Profile, runtimeOpts RuntimeOptions) (Runtime, error)

NewRuntime builds the concrete runtime used by review lifecycle commands.

type RuntimeFactory

type RuntimeFactory = cmdruntime.Factory

RuntimeFactory builds the concrete runtime used by review lifecycle commands.

type RuntimeOptions

type RuntimeOptions = cmdruntime.Options

RuntimeOptions carries command flags that affect runtime construction.

type SelectionRuntime added in v0.3.68

type SelectionRuntime struct {
	Provider gitprovider.GitProvider
	Adapter  llm.Adapter
	Cleanup  func()
}

SelectionRuntime contains the dependencies needed for selection-only execution paths that must match review-command runtime semantics.

func OpenSelectionRuntime added in v0.3.68

func OpenSelectionRuntime(_ context.Context, backend string, backendFlagChanged bool, cfg config.File, profile config.Profile) (SelectionRuntime, error)

OpenSelectionRuntime resolves provider and adapter setup using the same semantics as the real review command.

Jump to

Keyboard shortcuts

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