cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package cli implements the agenttransfer command-line client (and the demo and doctor subcommands). The CLI is a thin wrapper over the same REST API agents use — nothing here can't be done with curl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Demo

func Demo(out io.Writer) error

Demo runs the 30-second local end-to-end story: spin a throwaway server, create two agents, hand a file from one to the other, verify the hash, and verify the signed receipt chain. No domain, no email key, no config.

It doubles as the end-to-end smoke test in CI.

func Doctor

func Doctor(out io.Writer) int

Doctor runs self-host preflight checks against the current environment configuration and prints copy-paste fixes. Exit code 1 if anything failed.

func Run

func Run(args []string) int

Run dispatches a client subcommand. Returns process exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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