Skip to content

fmt from stdout should always output the formatted diagram #1577

@jscarrott

Description

@jscarrott

I want to use d2 to format on save in helix but as it outputs nothing if the doc is already formatted it can completely delete the diagram if I am not careful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliThis issue is related to the CLI (cmd/d2)fmtgood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions