cli

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Overview

Package cli provides internal CLI wiring and command construction for the pulse binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APICommand

func APICommand() *cli.Command

APICommand returns the api command group.

func CohortCommand

func CohortCommand() *cli.Command

CohortCommand returns the cohort command group.

func ConvertCommand

func ConvertCommand() *cli.Command

ConvertCommand returns the convert command.

func ErrorsCommand added in v0.5.0

func ErrorsCommand() *cli.Command

ErrorsCommand returns the errors command group. Two leaves:

  • `pulse errors lookup CODE [--json]`
  • `pulse errors list [--domain D] [--query Q] [--json]`

Both wrap the errors-package lookup surface. CODE detail (Message + Fixup hints) lives behind the lookup tool rather than the bootstrap manifest, so per-session context stays lean.

func ExamplesCommand added in v0.5.0

func ExamplesCommand() *cli.Command

ExamplesCommand returns the examples command group. Two leaves:

  • `pulse examples search [--query Q] [--tag T] [--category C] [--json]`
  • `pulse examples show NAME [--json]`

Both wrap the embedded request-example library (examples package).

func ExportCommand

func ExportCommand() *cli.Command

ExportCommand returns the export command group.

func ImportCommand

func ImportCommand() *cli.Command

ImportCommand returns the import command group.

func MCPCommand added in v0.2.0

func MCPCommand() *cli.Command

MCPCommand returns the mcp command leaf. Running it serves the MCP protocol over stdio so AI clients (Claude Desktop, Claude Code, etc.) can discover and call Pulse tools.

func ProfileCommand added in v0.2.0

func ProfileCommand() *cli.Command

ProfileCommand returns the `pulse profile` command group.

func ShardCommand added in v0.8.0

func ShardCommand() *cli.Command

ShardCommand returns the `pulse shard` command group covering archive create / add / remove / list / compact / verify / extract. Shard mutations use the atomic temp+rename pattern so partial writes never appear at the canonical archive path.

func SkillsCommand

func SkillsCommand() *cli.Command

SkillsCommand returns the skills command group.

func SynthCommand added in v0.2.0

func SynthCommand() *cli.Command

SynthCommand returns the `pulse synth` command group.

func WriteJSONPublic

func WriteJSONPublic(w io.Writer, data any) error

WriteJSONPublic is the exported version of writeJSON for use from main.

Types

This section is empty.

Jump to

Keyboard shortcuts

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