Skip to content

Commit

Permalink
Add emojis support for tkn clustertask describe command
Browse files Browse the repository at this point in the history
Closes #632

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel authored and tekton-robot committed Jan 22, 2020
1 parent 6ee5b3a commit fe52ecc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/cmd/clustertask/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (

const describeTemplate = `{{decorate "bold" "Name"}}: {{ .ClusterTask.Name }}
{{decorate "underline bold" "Input Resources\n"}}
{{decorate "inputresources" ""}}{{decorate "underline bold" "Input Resources\n"}}
{{- if not .ClusterTask.Spec.Inputs }}
No input resources
Expand All @@ -46,7 +46,7 @@ const describeTemplate = `{{decorate "bold" "Name"}}: {{ .ClusterTask.Name }}
{{- end }}
{{- end }}
{{decorate "underline bold" "Output Resources\n"}}
{{decorate "outputresources" ""}}{{decorate "underline bold" "Output Resources\n"}}
{{- if not .ClusterTask.Spec.Outputs }}
No output resources
Expand All @@ -62,7 +62,7 @@ const describeTemplate = `{{decorate "bold" "Name"}}: {{ .ClusterTask.Name }}
{{- end }}
{{- end }}
{{decorate "underline bold" "Params\n"}}
{{decorate "params" ""}}{{decorate "underline bold" "Params\n"}}
{{- if not .ClusterTask.Spec.Inputs }}
No params
Expand All @@ -85,7 +85,7 @@ No params
{{- end }}
{{- end }}
{{decorate "underline bold" "Steps\n"}}
{{decorate "steps" ""}}{{decorate "underline bold" "Steps\n"}}
{{- if eq (len .ClusterTask.Spec.Steps) 0 }}
No steps
Expand All @@ -95,7 +95,7 @@ No params
{{- end }}
{{- end }}
{{decorate "underline bold" "Taskruns\n"}}
{{decorate "taskruns" ""}}{{decorate "underline bold" "Taskruns\n"}}
{{- if eq (len .TaskRuns.Items) 0 }}
No taskruns
Expand Down

0 comments on commit fe52ecc

Please sign in to comment.