cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 8 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 {
	Sources map[string]ux.Source
	Sinks   map[string]ux.Sink
}

func Parse

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

func (Input) GetSinks

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

func (Input) GetSources

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

type Options

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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