invocation

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package invocation 保存 CLI 根命令的调用期数据:persistent flags 目标与标准流。

只保存调用方提供的值,不包装、缓存或替换 IO,不含服务方法;不导入 config、auth、 SDK、Cobra 或 update。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RootOptions

type RootOptions struct {
	Proxy string
	Host  string
}

RootOptions 是根命令 persistent flags 的目标。

type Streams

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

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

func NewStreams

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

NewStreams 构造 Streams。

Jump to

Keyboard shortcuts

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