Skip to content

Vanishing headers #55

@duglin

Description

@duglin
$ knctl route list
Routes in namespace 'default'

Name         Domain                                                              Traffic                   Annotations  Conditions  Age
fib-knative  fib-knative.default.mycluster3.us-south.containers.appdomain.cloud  50% -> fib-knative-00003  -            3 OK / 3    10m
                                                                                 50% -> fib-knative-00002

1 routes

Succeeded

$ knctl route list | more
fib-knative     fib-knative.default.mycluster3.us-south.containers.appdomain.cloud      50% -> fib-knative-00003        -       3 OK / 3        10
m
                                                                                        50% -> fib-knative-00002

$ knctl route list > a
$ cat a
fib-knative     fib-knative.default.mycluster3.us-south.containers.appdomain.cloud      50% -> fib-knative-00003        -       3 OK / 3        10
m
                                                                                        50% -> fib-knative-00002

Why are headers removed when the output is to a pipe or a file? This makes it really hard for me when I need to wrap the command with other tooling, or even just save the output. The output should not change based on where the output is going. If people want something w/o headers then let them ask for it via a flag.

Yes there's a --tty but I shouldn't have to do that to get the commands "normal" output to remain unchanged just because I'm sending it to a file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions