src/server/pfs/pretty/pretty.go
func PrintRepoInfo(w io.Writer, repoInfo *pfs.RepoInfo, fullTimestamps bool) {
	fmt.Fprintf(w, "%s\t", repoInfo.Repo.Name)
	if fullTimestamps {
		fmt.Fprintf(w, "%s\t", repoInfo.Created.String())
	} else {
		fmt.Fprintf(w, "%s\t", pretty.Ago(repoInfo.Created))
	}
	fmt.Fprintf(w, "%s\t", units.BytesSize(float64(repoInfo.SizeBytes)))
	if repoInfo.AuthInfo != nil {
		fmt.Fprintf(w, "%s\t", repoInfo.AuthInfo.AccessLevel.String())
	}
	fmt.Fprintln(w)
}
func PrintRepoInfo(w io.Writer, repoInfo *pfs.RepoInfo, fullTimestamps bool) {
	fmt.Fprintf(w, "%s\t", repoInfo.Repo.Name)
	if fullTimestamps {
		fmt.Fprintf(w, "%s\t", repoInfo.Created.String())
	} else {
		fmt.Fprintf(w, "%s\t", pretty.Ago(repoInfo.Created))
	}
	fmt.Fprintf(w, "%s\t", units.BytesSize(float64(repoInfo.SizeBytes)))
	if repoInfo.AuthInfo != nil {
		fmt.Fprintf(w, "%s\t", repoInfo.AuthInfo.AccessLevel.String())
	}
	fmt.Fprintln(w)
}
func PrintRepoInfo ( w io . Writer , repoInfo * pfs . RepoInfo , fullTimestamps bool ) { fmt . Fprintf ( w , " \t " , repoInfo . Repo . Name ) if fullTimestamps { fmt . Fprintf ( w , " \t " , repoInfo . Created . String ( ) ) } else { fmt . Fprintf ( w , " \t " , pretty . Ago ( repoInfo . Created ) ) } fmt . Fprintf ( w , " \t " , units . BytesSize ( float64 ( repoInfo . SizeBytes ) ) ) if repoInfo . AuthInfo != nil { fmt . Fprintf ( w , " \t " , repoInfo . AuthInfo . AccessLevel . String ( ) ) } fmt . Fprintln ( w ) }
// PrintRepoInfo pretty-prints repo info.
PrintRepoInfo pretty - prints repo info .