1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | const chalk_1 = require("chalk");
|
19 | const modes_1 = require("../machine/modes");
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | function sdmStartupMessage(sdm) {
|
25 | return () => ({
|
26 | title: "SDM",
|
27 | body: `${sdm.name}${modes_1.isInLocalMode() ? ` ${chalk_1.default.grey("started in")} ${chalk_1.default.green("local mode")}` : (modes_1.isGitHubAction() ? ` ${chalk_1.default.grey("started as")} ${chalk_1.default.green("GitHub action")}` : "")}`,
|
28 | });
|
29 | }
|
30 | exports.sdmStartupMessage = sdmStartupMessage;
|
31 | function sdmExtensionPackStartupMessage(sdm) {
|
32 | return () => ({
|
33 | title: sdm.extensionPacks.length > 1 ? "Extension Packs" : "Extension Pack",
|
34 | body: sdm.extensionPacks.map(ex => `${ex.name}:${ex.version} ${chalk_1.default.gray("by")} ${ex.vendor}`)
|
35 | .sort((e1, e2) => e1.localeCompare(e2)).join("\n"),
|
36 | });
|
37 | }
|
38 | exports.sdmExtensionPackStartupMessage = sdmExtensionPackStartupMessage;
|
39 |
|
\ | No newline at end of file |