kath61105/moon_schema_plan/cmd/main does not have a README file

    Options

    pub(all) struct Options {
    before : Source?
    after : Source?
    hints : Source?
    max_risk :
    Risk

    format : String?
    out : String?
    }

    Source

    pub(all) struct Source {
    kind : SourceKind
    value : String
    origin : String
    } derive(Eq,
    Debug
    )

    A schema argument together with where it came from, so that every diagnostic can name the file or the flag the operator actually used.

    SourceKind

    pub(all) enum SourceKind {
    Inline
    File
    } derive(Eq,
    Debug
    )

    Where a schema argument came from. Parsing records the intent; reading the file happens afterwards, which is what keeps parse_options a pure function and therefore testable.

    Source Files