MCPcopy Create free account
hub / github.com/bombshell-dev/clack / SegmentOptions

Interface SegmentOptions

packages/prompts/src/date.ts:157–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157interface SegmentOptions {
158 isActive: boolean;
159 label: string;
160}
161function renderSegment(value: string, opts: SegmentOptions): string {
162 const isBlank = !value || value.replace(/_/g, '') === '';
163 if (opts.isActive) return styleText('inverse', isBlank ? opts.label : value.replace(/_/g, ' '));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected