Documentation ¶
Index ¶
- Constants
- func CompactPrintBranch(b *pfs.Branch) string
- func CompactPrintCommit(c *pfs.Commit) string
- func CompactPrintFile(f *pfs.File) string
- func PrintBranch(w io.Writer, branchInfo *pfs.BranchInfo)
- func PrintBranchHeader(w io.Writer)
- func PrintCommitInfo(w io.Writer, commitInfo *pfs.CommitInfo)
- func PrintCommitInfoHeader(w io.Writer)
- func PrintDetailedCommitInfo(commitInfo *pfs.CommitInfo) error
- func PrintDetailedFileInfo(fileInfo *pfs.FileInfo) error
- func PrintDetailedRepoInfo(repoInfo *pfs.RepoInfo) error
- func PrintFileInfo(w io.Writer, fileInfo *pfs.FileInfo)
- func PrintFileInfoHeader(w io.Writer)
- func PrintRepoHeader(w io.Writer, printAuth bool)
- func PrintRepoInfo(w io.Writer, repoInfo *pfs.RepoInfo)
Constants ¶
const ( // RepoHeader is the header for repos. RepoHeader = "NAME\tCREATED\tSIZE (MASTER)\t\n" // RepoAuthHeader is the header for repos with auth information attached. RepoAuthHeader = "NAME\tCREATED\tSIZE (MASTER)\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 CompactPrintBranch ¶ added in v1.8.6
CompactPrintBranch renders 'b' as a compact string, e.g. "myrepo@master:/my/file"
func CompactPrintCommit ¶ added in v1.8.6
CompactPrintCommit renders 'c' as a compact string, e.g. "myrepo@123abc:/my/file"
func CompactPrintFile ¶ added in v1.8.6
CompactPrintFile renders 'f' as a compact string, e.g. "myrepo@master:/my/file"
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
PrintBranchHeader prints a branch header.
func PrintCommitInfo ¶
func PrintCommitInfo(w io.Writer, commitInfo *pfs.CommitInfo)
PrintCommitInfo pretty-prints commit info.
func PrintCommitInfoHeader ¶
PrintCommitInfoHeader prints a commit info header.
func PrintDetailedCommitInfo ¶ added in v1.1.0
func PrintDetailedCommitInfo(commitInfo *pfs.CommitInfo) error
PrintDetailedCommitInfo pretty-prints detailed commit info.
func PrintDetailedFileInfo ¶ added in v1.1.0
PrintDetailedFileInfo pretty-prints detailed file info.
func PrintDetailedRepoInfo ¶ added in v1.1.0
PrintDetailedRepoInfo pretty-prints detailed repo info.
func PrintFileInfo ¶
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 ¶
PrintFileInfoHeader prints a file info header.
func PrintRepoHeader ¶
PrintRepoHeader prints a repo header.
Types ¶
This section is empty.