CLI Program.cs

VizzyCode.Cli/Program.cs implements the standalone command-line interface. It is the automation layer used directly by users and indirectly by the VS Code extension. cli automation

Commands Implemented

CommandMethodCore behavior
importRunImportXML to clean-view .vizzy.cs plus sidecar.
exportRunExportRestore sidecar, convert code, validate, save XML.
roundtripRunRoundTripXML to code to XML, then byte comparison.
raw-encodeRunRawEncodeXML element to Raw* and RawXml* forms.
raw-decodeRunRawDecodeRaw payload or call back to XML.

Dependency Flow

flowchart TD
    A[CLI args] --> B{Command}
    B --> C[Import]
    B --> D[Export]
    B --> E[Roundtrip]
    B --> F[Raw tools]
    C --> G[CodeCleanView.cs]
    D --> H[VizzyXmlConverter.cs]
    E --> H
    D --> I[VizzyExportValidator.cs]
    E --> I

Export validation

CLI export and roundtrip intentionally fail when VizzyExportValidator.cs reports errors.

Related notes: Component Map, 03 - CLI (VizzyCode.Cli), 07 - VS Code Extension, 13 - Recommended Workflows.