cli

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fail = cli.Fail

Functions

func Flags

func Flags(cmd *cobra.Command, opts *Options)

func InputFlag

func InputFlag(cmd *cobra.Command, opts *Options, value []string)

func OutputFlag

func OutputFlag(cmd *cobra.Command, opts *Options, value []string)

Types

type Input

type Input struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(opts Options, args []string) (i Input, err error)

func (Input) Plugins added in v0.0.3

func (i Input) Plugins() iter.Seq2[string, ux.Plugin]

Plugins implements ux.Input.

func (Input) Sinks

func (i Input) Sinks() iter.Seq2[string, ux.Sink]

Sinks implements ux.Input.

func (Input) Sources

func (i Input) Sources() iter.Seq2[string, ux.Source]

Sources implements ux.Input.

type Options

type Options struct {
	Inputs  []string
	Outputs []string
}

func (Options) Sinks added in v0.0.3

func (opts Options) Sinks() (iter.Seq2[string, ux.Sink], error)

func (Options) Sources added in v0.0.3

func (opts Options) Sources() (iter.Seq2[string, ux.Source], error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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