cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewPageWriteCloser added in v0.2.0

func NewPageWriteCloser(outFile *os.File, errFile *os.File) (io.WriteCloser, error)

NewPageWriteCloser creates a stream writer that copies its output into a program like `less` or `more` to show output slowly, allowing a human to page through. Do remember to call `Close`, or you may mess up where Stdout is pointing in your shell.

func RunBringTo added in v0.2.1

func RunBringTo(cmd *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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