src/server/pps/pretty/pretty.go
func PrintPipelineInfo(w io.Writer, pipelineInfo *ppsclient.PipelineInfo, fullTimestamps bool) {
	fmt.Fprintf(w, "%s\t", pipelineInfo.Pipeline.Name)
	fmt.Fprintf(w, "%s\t", ShorthandInput(pipelineInfo.Input))
	if fullTimestamps {
		fmt.Fprintf(w, "%s\t", pipelineInfo.CreatedAt.String())
	} else {
		fmt.Fprintf(w, "%s\t", pretty.Ago(pipelineInfo.CreatedAt))
	}
	fmt.Fprintf(w, "%s / %s\t\n", pipelineState(pipelineInfo.State), jobState(pipelineInfo.LastJobState))
}
func PrintPipelineInfo(w io.Writer, pipelineInfo *ppsclient.PipelineInfo, fullTimestamps bool) {
	fmt.Fprintf(w, "%s\t", pipelineInfo.Pipeline.Name)
	fmt.Fprintf(w, "%s\t", ShorthandInput(pipelineInfo.Input))
	if fullTimestamps {
		fmt.Fprintf(w, "%s\t", pipelineInfo.CreatedAt.String())
	} else {
		fmt.Fprintf(w, "%s\t", pretty.Ago(pipelineInfo.CreatedAt))
	}
	fmt.Fprintf(w, "%s / %s\t\n", pipelineState(pipelineInfo.State), jobState(pipelineInfo.LastJobState))
}
func PrintPipelineInfo ( w io . Writer , pipelineInfo * ppsclient . PipelineInfo , fullTimestamps bool ) { fmt . Fprintf ( w , " \t " , pipelineInfo . Pipeline . Name ) fmt . Fprintf ( w , " \t " , ShorthandInput ( pipelineInfo . Input ) ) if fullTimestamps { fmt . Fprintf ( w , " \t " , pipelineInfo . CreatedAt . String ( ) ) } else { fmt . Fprintf ( w , " \t " , pretty . Ago ( pipelineInfo . CreatedAt ) ) } fmt . Fprintf ( w , " \t \n " , pipelineState ( pipelineInfo . State ) , jobState ( pipelineInfo . LastJobState ) ) }
// PrintPipelineInfo pretty-prints pipeline info.
PrintPipelineInfo pretty - prints pipeline info .