cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() int

func NewRootCmd

func NewRootCmd(runtime *Runtime) *cobra.Command

Types

type RootOptions

type RootOptions struct {
	Profile string
	JSON    bool
	Compact bool
	Raw     bool
}

type Runtime

type Runtime struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	Cwd    string
	Getenv func(string) string
}

func NewRuntime

func NewRuntime() *Runtime

func (*Runtime) CurrentDir

func (runtime *Runtime) CurrentDir() (string, error)

func (*Runtime) Env

func (runtime *Runtime) Env(key string) string

Jump to

Keyboard shortcuts

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