Skip to content

print_record: Option separator does not work #728

@TobiasNx

Description

@TobiasNx

When setting the separator option in print_record it has no effect. It might be unnecessary?

Input:

{  "hello" : "World"  }
{  "hello" : "Underworld"  }

Flux:

FLUX_DIR + "inputFile.json"
| open-file
| as-records
| decode-json
| fix(FLUX_DIR + "base.fix",*)
| encode-yaml
| print
;

Fix:

print_record(separator:"\n Next record:",destination: "test.json",append:"true")

add_field("hello","Void")

Output:
stout

---
hello: "Void"

---
hello: "Void"

test.json

{"hello":"World"}
{"hello":"Underworld"}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions