cmd

package
v0.0.0-...-cfcc8af Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main() int

Main runs the preprocessor tool and returns the code for passing to os.Exit.

We follow the same approach here as the cue command (as well as using the using the same version of Cobra) for consistency. Panic is used as a strategy for early-return from any running command.

Types

type Command

type Command struct {
	*cobra.Command
	// contains filtered or unexported fields
}

func New

func New(args []string) (cmd *Command, err error)

func (*Command) Run

func (c *Command) Run(ctx context.Context) (err error)

func (*Command) SetInput

func (c *Command) SetInput(r io.Reader)

func (*Command) SetOutput

func (c *Command) SetOutput(w io.Writer)

func (*Command) Stderr

func (c *Command) Stderr() io.Writer

Jump to

Keyboard shortcuts

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