Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit e44483f

Browse files
committed
Decorate missing programs
1 parent ec49c5b commit e44483f

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
"homepage": "https://kmdr.sh",
2727
"license": "MIT",
2828
"devDependencies": {
29-
"@types/eventsource": "^1.1.4",
29+
"@types/eventsource": "^1.1.5",
3030
"@types/jest": "^24.9.1",
31-
"@types/node": "^12.12.58",
31+
"@types/node": "^12.19.3",
3232
"@types/node-fetch": "^2.5.7",
3333
"jest": "^24.8.0",
3434
"kmdr-parser": "^2.4.2",
@@ -75,7 +75,7 @@
7575
"enquirer": "^2.3.6",
7676
"eventsource": "^1.0.7",
7777
"graphql-request": "^2.0.0",
78-
"kmdr-ast": "^3.3.5",
78+
"kmdr-ast": "^3.4.0",
7979
"node-fetch": "^2.6.1",
8080
"ora": "^4.1.1"
8181
},

src/CliDecorators.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default class CliDecorators implements Decorators<string> {
4848
summary = definition.metadata.summary;
4949
break;
5050
}
51+
case "missing_program":
5152
case "program": {
5253
const programDefinition = definition as ProgramNodeDefinition;
5354
const { name } = programDefinition.metadata;
@@ -197,6 +198,10 @@ export default class CliDecorators implements Decorators<string> {
197198
return this.theme.print("operator", text);
198199
}
199200

201+
public missingProgram(text: string, _definition?: NodeDefinition) {
202+
return this.theme.print("program", text);
203+
}
204+
200205
public newLine() {
201206
return "\n";
202207
}

0 commit comments

Comments
 (0)