invocation

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0, BSD-3-Clause, CC-BY-4.0, + 2 more Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package invocation 保存一次 CLI 调用的标准流。

该包只保存调用方提供的值,不创建或缓存服务、资源或协议适配器;因此可以被 root 与 command owner 共同使用而不引入 config、storage、SDK、MCP、update 或 Cobra。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Streams

type Streams struct {
	In  io.Reader
	Out io.Writer
	Err io.Writer
}

Streams 保存调用方提供的标准输入、标准输出和错误输出。

func NewStreams

func NewStreams(in io.Reader, out, errOut io.Writer) *Streams

NewStreams 构造一次调用的标准流,不替换或包装调用方对象。

Jump to

Keyboard shortcuts

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