MCPcopy Index your code
hub / github.com/cloudgraphdev/cli / getStatus

Method getStatus

src/reports/rules-report.ts:37–57  ·  view source on GitHub ↗
(result: string)

Source from the content-addressed store, hash-verified

35 }
36
37 private getStatus(result: string): string {
38 let status
39 switch (result) {
40 case 'MISSING': {
41 status = chalk.yellow(
42 String.fromCodePoint(0x26a0) // warning symbol
43 )
44 break
45 }
46 case 'FAIL': {
47 status = chalk.red(
48 String.fromCodePoint(0x1f6ab) // failure symbol
49 )
50 break
51 }
52 default: {
53 status = chalk.green(String.fromCodePoint(0x2714)) // checkmark symbol
54 }
55 }
56 return status
57 }
58
59 print(): void {
60 if (!isEmpty(this.tables)) {

Callers 1

pushDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected