print

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package print is the non-interactive frontend (-p): one prompt in, the reply on stdout, or every event as JSON lines with -json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(a *app.App, args []string, jsonMode bool) error

Run returns once the conversation and its background tasks are done. The reply goes to stdout and notes to stderr; in JSON mode every event goes to stdout.

Types

type UI

type UI struct{}

UI refuses whatever the permission mode doesn't allow on its own, since nobody can answer in print mode.

func (UI) Approve

func (UI) Approve(_ context.Context, req interact.Approval) (interact.Verdict, error)

func (UI) Ask

Jump to

Keyboard shortcuts

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