MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / OutputConfig

Class OutputConfig

unity_cli/cli/output.py:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45@dataclass(frozen=True)
46class OutputConfig:
47 mode: OutputMode
48
49 @property
50 def is_json(self) -> bool:
51 return self.mode is OutputMode.JSON
52
53 @property
54 def is_plain(self) -> bool:
55 return self.mode is OutputMode.PLAIN
56
57 @property
58 def is_pretty(self) -> bool:
59 return self.mode is OutputMode.PRETTY
60
61
62def resolve_output_mode(

Callers 5

test_is_jsonMethod · 0.90
test_is_plainMethod · 0.90
test_is_prettyMethod · 0.90
CLIContextClass · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by 3

test_is_jsonMethod · 0.72
test_is_plainMethod · 0.72
test_is_prettyMethod · 0.72