playbook

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package playbook provides the `ana playbook` verb tree: list, get, reports, and lineage. Like the other verb packages it avoids importing internal/transport and internal/config — callers inject a narrow Deps struct that adapts a real transport client to a single Unary function field.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(deps Deps) *cli.Group

New returns the `playbook` verb group. Safe to register under any name in the root verb table — the group holds no state of its own, only a handful of *<verb>Cmd structs that capture the shared Deps.

Types

type Deps

type Deps struct {
	Unary func(ctx context.Context, path string, req, resp any) error
}

Deps is the injection boundary for the playbook package.

Unary JSON-encodes req, POSTs it to path, and JSON-decodes into *resp. A real wiring layer adapts transport.Client to this signature; tests pass fakes that record the path and payload for wire-level assertions.

Jump to

Keyboard shortcuts

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