cli

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() int

Types

type CLI

type CLI struct {
	Stdout io.Writer
	Stderr io.Writer
	Env    []string
	Dir    string
	// contains filtered or unexported fields
}

func Default

func Default() *CLI

func (*CLI) Generate

func (c *CLI) Generate(ctx context.Context, in *Generate) error

func (*CLI) Inspect

func (c *CLI) Inspect(ctx context.Context, in *Inspect) error

func (*CLI) Lint

func (c *CLI) Lint(ctx context.Context, in *Lint) error

Lint the packages like go vet, printing the problems to stderr

func (*CLI) Parse

func (c *CLI) Parse(ctx context.Context, args ...string) error

func (*CLI) Version added in v0.3.0

func (c *CLI) Version(ctx context.Context, in *Version) error

Version prints the version of pogo, which is the module version it was built from (e.g. v0.2.0), or dev without one, like with go run

type Generate

type Generate struct {
	Language string
	Url      string
	OutDir   *string
	Verbose  bool
}

type Inspect

type Inspect struct {
	Url  string
	Json bool
}

type Lint

type Lint struct {
	Patterns []string
	Verbose  bool
}

type Version added in v0.3.0

type Version struct{}

Jump to

Keyboard shortcuts

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