desc

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package desc contains libraries for printing package descriptions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// StdOut is the StdOut value
	StdOut io.Writer

	// PkgPaths refers to the pkg directories to be described.
	PkgPaths []string

	PrintBasePath bool
}

Command prints information about the given packages.

func (Command) GetStdOut

func (c Command) GetStdOut() io.Writer

GetStdOut returns the io.Writer that will be used as describe stdout.

func (Command) Run

func (c Command) Run() error

Run prints information about given packages in a tabular format. A directory containing KptFile is considered to be a valid package. Invalid packages are ignored.

Jump to

Keyboard shortcuts

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