MCPcopy
hub / github.com/deepnote/deepnote / getStatusIcon

Function getStatusIcon

packages/cli/src/commands/diff.ts:401–405  ·  view source on GitHub ↗
(status: 'added' | 'removed' | 'modified')

Source from the content-addressed store, hash-verified

399}
400
401function getStatusIcon(status: 'added' | 'removed' | 'modified'): string {
402 if (status === 'added') return '+'
403 if (status === 'removed') return '-'
404 return '~'
405}
406
407function getStatusColor(status: 'added' | 'removed' | 'modified', c: ChalkInstance): ChalkInstance {
408 if (status === 'added') return c.green

Callers 1

printDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected