Skip to content

[Feature] Filter output of cli commands #1974

Description

@BlackQube

Use case

Some commands, like "headscale nodes list -t" produces a large horizontaly output, that mostly doesn't fit and will be wraped to the next line. This makes it difficult to read.

Description

It whould be good to be able to filter the output to hide some of the columns.
Currently (without the option "-t, --tags" included) there are the following topics shown:

  • ID
  • Hostname
  • Name
  • MachineKey
  • NodeKey
  • User
  • IP addresses
  • Ephemeral
  • Last seen
  • Expiration
  • Connected
  • Expired

with "-t, --tags" included:

  • ForcedTags
  • InvalidTags
  • ValidTags

I guess, a valid reduced output could be

  • ID
  • Hostname
  • Name
  • User
  • IP addresses
  • Connected
  • Expired

The contribution options needed to be checked to submit this request, but I don't think I can be a productive contributor. Sorry...

Contribution

  • I can write the design doc for this feature
  • I can contribute this feature

How can it be implemented?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions