Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CatRunner ¶
type CatRunner struct {
Command *cobra.Command
Ctx context.Context
Format bool
KeepAnnotations bool
Styles []string
StripComments bool
RecurseSubPackages bool
}
CatRunner contains the run function
func GetCatRunner ¶
GetCatRunner returns a command CatRunner.
func (*CatRunner) ExecuteCmd ¶
ExecuteCmd outputs the contents of a single package at pkgPath. It intentionally does NOT recurse into nested subpackages (directories containing a Kptfile). Subpackage recursion is handled by the caller (runner.ExecuteCmdOnPkgs) which invokes ExecuteCmd once per package when RecurseSubPackages is set. Callers invoking ExecuteCmd directly will only see the top-level package content; use ExecuteCmdOnPkgs for recursive traversal.
Click to show internal directories.
Click to hide internal directories.