cg

package
v0.0.0-...-0a992e6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cg assembles the full `cg` command tree: the capture-run model's own subcommands (package model), the MCP server (package mcp), and the approval-rules subcommands (package approvecmd). It is the single place that has to know about every subcommand package, so any binary that calls NewCommand gets all of them without repeating the wiring itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the cg cobra command. cg is dispatch-only: it executes programs through the `cg run` subcommand and exposes the capture-run model through the resolution subcommands. With no arguments it prints help; an unrecognized first token, including the old bare-`cg -- COMMAND` form, is an unknown-command error.

Types

type ExitError

type ExitError = model.ExitError

ExitError re-exports model.ExitError so callers that only import cg for NewCommand don't also need to import model to unwrap the exit code from a returned error.

Directories

Path Synopsis
Package approve implements the cg_run approval gate: a layered YAML rules file, a load-once config store, and an argv-native matcher that decides whether a command runs, is refused, or needs an interactive prompt.
Package approve implements the cg_run approval gate: a layered YAML rules file, a load-once config store, and an argv-native matcher that decides whether a command runs, is refused, or needs an interactive prompt.
Package approvecmd implements the `cg check` and `cg lint` subcommands.
Package approvecmd implements the `cg check` and `cg lint` subcommands.
Package mcp implements `cg mcp`, a stdio MCP server that exposes cg's capture-run model as native MCP tools.
Package mcp implements `cg mcp`, a stdio MCP server that exposes cg's capture-run model as native MCP tools.
Package model implements cg's capture-run domain: the on-disk model for runs and pools (meta, start, debug, and pool manifest records), execution (RunSupervised, PoolSupervised, and the supervise-run/supervise-pool commands that back them), resolution and locking, notes, grep, prune, and the `cg run` annotator.
Package model implements cg's capture-run domain: the on-disk model for runs and pools (meta, start, debug, and pool manifest records), execution (RunSupervised, PoolSupervised, and the supervise-run/supervise-pool commands that back them), resolution and locking, notes, grep, prune, and the `cg run` annotator.

Jump to

Keyboard shortcuts

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