Skip to content

[BUG] CSV parser outputs fields in a different oreder then JSON and YAML outputs #341

@nieomylnieja

Description

@nieomylnieja

Describe the bug

When using --output/-o flag with csv value, the resulting CSV's fields (columns) order differs from JSON/YAML outputs.

To Reproduce

Run any command, for instance sloctl config current-user -o csv and compare with sloctl config current-user -o json.

Expected behavior

Fields ordering is consistent across output formats.

System details (please complete the following information)

  • OS (with version): Linux nixos 6.12.29
  • sloctl version 0.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions