We should have a consistent approach to how resources are referenced in tkn. Currently, there are several different approaches used. An example is TaskRun:
TaskRun:
|
emptyMsg = "No TaskRuns found" |
taskrun:
|
fmt.Fprintf(os.Stderr, "Failed to list taskruns from %s namespace \n", p.Namespace()) |
Taskrun:
|
fmt.Fprintf(opt.stream.Out, "Taskrun started: %s\n", trCreated.Name) |
My thought would be to capitalize the resource name (TaskRun) or to lowercase the resource name completely (taskrun).
While I am using TaskRun as an example, this applies to all resources in the CLI. I have no preference on how to refer to resources, but we should be consistent throughout the CLI.
We should have a consistent approach to how resources are referenced in
tkn. Currently, there are several different approaches used. An example isTaskRun:TaskRun:
cli/pkg/cmd/taskrun/list.go
Line 36 in 84e7da6
taskrun:
cli/pkg/cmd/taskrun/list.go
Line 82 in 84e7da6
Taskrun:
cli/pkg/cmd/task/start.go
Line 239 in 4ae08d7
My thought would be to capitalize the resource name (
TaskRun) or to lowercase the resource name completely (taskrun).While I am using
TaskRunas an example, this applies to all resources in the CLI. I have no preference on how to refer to resources, but we should be consistent throughout the CLI.