pretty

package
v1.8.2-b01811d728f42be... Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RepoHeader is the header for repos.
	RepoHeader = "NAME\tCREATED\tSIZE\t\n"
	// RepoAuthHeader is the header for repos with auth information attached.
	RepoAuthHeader = "NAME\tCREATED\tSIZE\tACCESS LEVEL\t\n"
	// CommitHeader is the header for commits.
	CommitHeader = "REPO\tCOMMIT\tPARENT\tSTARTED\tDURATION\tSIZE\t\n"
	// BranchHeader is the header for branches.
	BranchHeader = "BRANCH\tHEAD\t\n"
	// FileHeader is the header for files.
	FileHeader = "COMMIT\tNAME\tTYPE\tCOMMITTED\tSIZE\t\n"
)

Variables

This section is empty.

Functions

func PrintBranch added in v1.3.19

func PrintBranch(w io.Writer, branchInfo *pfs.BranchInfo)

PrintBranch pretty-prints a Branch.

func PrintBranchHeader added in v1.3.19

func PrintBranchHeader(w io.Writer)

PrintBranchHeader prints a branch header.

func PrintCommitInfo

func PrintCommitInfo(w io.Writer, commitInfo *pfs.CommitInfo)

PrintCommitInfo pretty-prints commit info.

func PrintCommitInfoHeader

func PrintCommitInfoHeader(w io.Writer)

PrintCommitInfoHeader prints a commit info header.

func PrintDetailedCommitInfo

func PrintDetailedCommitInfo(commitInfo *pfs.CommitInfo) error

PrintDetailedCommitInfo pretty-prints detailed commit info.

func PrintDetailedFileInfo

func PrintDetailedFileInfo(fileInfo *pfs.FileInfo) error

PrintDetailedFileInfo pretty-prints detailed file info.

func PrintDetailedRepoInfo

func PrintDetailedRepoInfo(repoInfo *pfs.RepoInfo) error

PrintDetailedRepoInfo pretty-prints detailed repo info.

func PrintFileInfo

func PrintFileInfo(w io.Writer, fileInfo *pfs.FileInfo)

PrintFileInfo pretty-prints file info. If recurse is false and directory size is 0, display "-" instead If fast is true and file size is 0, display "-" instead

func PrintFileInfoHeader

func PrintFileInfoHeader(w io.Writer)

PrintFileInfoHeader prints a file info header.

func PrintRepoHeader

func PrintRepoHeader(w io.Writer, printAuth bool)

PrintRepoHeader prints a repo header.

func PrintRepoInfo

func PrintRepoInfo(w io.Writer, repoInfo *pfs.RepoInfo)

PrintRepoInfo pretty-prints repo info.

Types

This section is empty.

Jump to

Keyboard shortcuts

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