Skip to content

Add --plain/--no-header to all list commands #164

@tiulpin

Description

@tiulpin

Area: Other / Not sure

Problem or use case

--plain and --no-header are only available on run list. Other list commands (job list, agent list, project list, queue list, pool list) require --json + jq for scripting, which is heavier.

Proposed solution

Add --plain (tab-separated output) and --no-header to all list commands for consistency:

# Works today
tc run list --plain --no-header | awk '{print $2}'

# Should also work
tc job list --plain --no-header | awk '{print $1}'
tc agent list --plain --no-header | awk '{print $1}'
tc queue list --plain --no-header | awk '{print $1}'
tc project list --plain --no-header | awk '{print $1}'
tc pool list --plain --no-header | awk '{print $1}'

Alternatives considered

Using --json + jq works but is verbose for simple field extraction in shell scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions