invocation

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT 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 根命令的调用期数据: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