Skip to content

jqfmt: always ignores comments #19

@cpmachado

Description

@cpmachado

Hello there,

Really like the project, but found an itch. It basically always ignores comments.

Sample

# Task 1
.name,

# Task 2
(.ingredients | length),

# Task 3
(.ingredients[] | select(.item == "sugar") | .amount.quantity),

# Task 4
((.ingredients + ."optional ingredients")  | map(select(.substitute) | {(.item): .substitute}) | add)

Any runnning of jqfmt outputs code without comments.

I'll be looking into it, and hopefully find a solution

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