Skip to content

Consistent Approach to Referring to Tekton Resources Through CLI #605

@danielhelfand

Description

@danielhelfand

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.

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions