cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 23 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:           "pet",
	Short:         "Simple command-line snippet manager.",
	Long:          `pet - Simple command-line snippet manager.`,
	SilenceErrors: true,
	SilenceUsage:  true,
}

RootCmd represents the base command when called without any subcommands

Functions

func CanceledError added in v0.6.1

func CanceledError() error

func CountLines added in v0.8.0

func CountLines(r io.Reader) (int, error)

CountLines returns the number of lines in a certain buffer

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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