cmd

package
v0.0.0-...-d32bb3a Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Package cmd is the implementation behind unity

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main() int

Main runs the unity 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