cmdcat

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(name string) *cobra.Command

Types

type CatRunner

type CatRunner struct {
	Format             bool
	KeepAnnotations    bool
	Styles             []string
	StripComments      bool
	Command            *cobra.Command
	RecurseSubPackages bool
}

CatRunner contains the run function

func GetCatRunner

func GetCatRunner(name string) *CatRunner

GetCatRunner returns a command CatRunner.

func (*CatRunner) ExecuteCmd

func (r *CatRunner) ExecuteCmd(w io.Writer, pkgPath string) error

Jump to

Keyboard shortcuts

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