Skip to content

Commit

Permalink
align output with task describe command
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhelfand authored and tekton-robot committed Sep 24, 2019
1 parent 394c825 commit 71684ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions pkg/cmd/taskrun/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Message
{{ $msg }}
{{- end }}
Inputs
Input Resources
{{- $l := len .TaskRun.Spec.Inputs.Resources }}{{ if eq $l 0 }}
No resources
{{- else }}
Expand All @@ -56,7 +56,7 @@ NAME RESOURCE REF
{{- end }}
{{- end }}
Outputs
Output Resources
{{- $l := len .TaskRun.Spec.Outputs.Resources }}{{ if eq $l 0 }}
No resources
{{- else }}
Expand Down Expand Up @@ -84,7 +84,7 @@ Steps
{{- $l := len .TaskRun.Status.Steps }}{{ if eq $l 0 }}
No steps
{{- else }}
STEP NAME
NAME
{{- range $steps := .TaskRun.Status.Steps }}
{{ $steps.Name }}
{{- end }}
Expand Down
14 changes: 7 additions & 7 deletions pkg/cmd/taskrun/describe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ Status
STARTED DURATION STATUS
--- --- Succeeded
Inputs
Input Resources
No resources
Outputs
Output Resources
No resources
Params
Expand Down Expand Up @@ -146,12 +146,12 @@ Status
STARTED DURATION STATUS
9 minutes ago --- Succeeded
Inputs
Input Resources
NAME RESOURCE REF
git git
image-input image
Outputs
Output Resources
NAME RESOURCE REF
image-output image
image-output2 image
Expand All @@ -162,7 +162,7 @@ input param
input2 param2
Steps
STEP NAME
NAME
step1
step2
`
Expand Down Expand Up @@ -213,10 +213,10 @@ STARTED DURATION STATUS
Message
Testing tr failed
Inputs
Input Resources
No resources
Outputs
Output Resources
No resources
Params
Expand Down

0 comments on commit 71684ab

Please sign in to comment.