package cmd

import "cuelang.org/go/cmd/cue/cmd"

Index

Functions

func Main

func Main(ctx context.Context, args []string) (err error)

Main runs the cue tool. It loads the tool flags.

Types

type Command

type Command struct {
	// 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)

Source Files

add.go cmd.go common.go custom.go eval.go export.go flags.go fmt.go get.go get_go.go import.go root.go trim.go version.go vet.go

Directories

PathSynopsis
cmd/cue/cmd/interfaces
Version
v0.0.6
Published
Aug 25, 2019
Platform
linux/amd64
Imports
50 packages
Last checked
1 hour ago

Tools for package owners.