RenderContext
The output decisions the framework will make for a given argv, resolved before .run().
RenderContext is a framework-created, non-exhaustive value: obtain instances from resolveRenderContext — do not implement it. New readonly members may be added in minor releases.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/cli/index.ts - Source link:
src/core/cli/index.ts:792
Signatures
interface RenderContext {}Members
Properties
[renderContextBrand]
Framework-construction seal. Obtain values from resolveRenderContext(); do not implement this interface.
[renderContextBrand]: never;color
The gated ANSI palette the output channel will expose as out.color — identity formatters when color is off; color.isColorSupported is the boolean gate.
color: Colors;isHyperlinkSupported
Whether OSC 8 hyperlinks should be emitted (see out.isHyperlinkSupported).
isHyperlinkSupported: boolean;isTTY
The TTY status the output channel will carry.
isTTY: boolean;jsonMode
Whether a pre-separator --json puts the run in JSON mode.
jsonMode: boolean;verbosity
Active verbosity after pre-separator --quiet/-q detection.
verbosity: "normal" | "quiet";