reviewcmd

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 27 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 Runner

Runner executes the configured review pipeline.

type Runtime

type Runtime struct {
	Runner          Runner
	PostingIdentity gitprovider.Identity
	Cleanup         func()
}

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

type RuntimeFactory

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

RuntimeFactory builds the concrete runtime used by `cr review`.

type RuntimeOptions

type RuntimeOptions struct {
	MaxAgents           int
	MaxConcurrency      int
	Retention           datalifecycle.RetentionPolicy
	RetentionManualOnly bool
}

RuntimeOptions carries command flags that affect runtime construction.

Jump to

Keyboard shortcuts

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