Skip to content

Validate command #2410

@cllns

Description

@cllns

Hi there!

I'm working on using D2 in my codebase, and in my tests I'd like to just parse the file to validate that the d2 code generated is valid, without actually generating a file.

I ended up implementing this as d2 graph.d2 /dev/null, which works but I think a CLI option would be better since many people don't know about /dev/null

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions