info

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package info provides the info command run function.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExist  = errors.New("no such file or directory")
	ErrNotSamp   = errors.New("no such example or sample file")
	ErrInfo      = errors.New("could not any obtain information")
	ErrUsage     = errors.New("command usage could not display")
	ErrPipeRead  = errors.New("could not read text stream from piped stdin (standard input)")
	ErrPipeParse = errors.New("could not parse the text stream from piped stdin (standard input)")
	ErrTmpClose  = errors.New("could not close the temporary file")
	ErrTmpOpen   = errors.New("could not open the temporary file")
	ErrTmpSave   = errors.New("could not save to the temporary file")
)

Functions

func Pipe

func Pipe(w io.Writer) error

Pipe parses a standard input (stdin) stream of data.

func Run

func Run(w io.Writer, cmd *cobra.Command, args ...string) error

Run parses the arguments supplied with the info command.

func Sample

func Sample(name string) (string, error)

Sample extracts and saves the named embed sample file then returns the filepath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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