Class ErdOwnedModeParser
- Namespace
- ProjGraph.Lib.Core.Abstractions
- Assembly
- ProjGraph.Lib.Core.dll
Parses the --owned-mode (CLI) / ownedMode (MCP) string option into an
ErdOwnedMode. Both surfaces call this single helper so the recognized values and their
mapping cannot drift apart — the CLI validates and converts through it, and the MCP tool must too,
rather than silently defaulting any unrecognized string to MirrorEf, which
gives an LLM caller a plausible-but-wrong result with no signal that its input was never applied.
public static class ErdOwnedModeParser
- Inheritance
-
ErdOwnedModeParser
- Inherited Members
Fields
Classic
The accepted value for Classic.
public const string Classic = "classic"
Field Value
Mirror
The accepted value for MirrorEf.
public const string Mirror = "mirror"
Field Value
Methods
TryParse(string, out ErdOwnedMode)
Attempts to parse value (case-insensitive) as an ErdOwnedMode.
public static bool TryParse(string value, out ErdOwnedMode mode)
Parameters
valuestringThe raw option value (e.g.
"mirror"or"classic").modeErdOwnedModeThe parsed mode when this method returns true; otherwise MirrorEf.