@forge/cli-shared
9.4.1-next.5-experimental-241de519.4.1-next.7-experimental-e16d59f
out/ui/text.js~
out/ui/text.jsModified+24
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -14,8 +14,14 @@
const log_color_1 = require("./log-color");
const log_symbols_1 = tslib_1.__importDefault(require("./log-symbols"));
const ctrlC = 'Press Ctrl+C to cancel.';
const encryptedValue = '****';
+var FrontendLogSourceDisplay;
+(function (FrontendLogSourceDisplay) {
+ FrontendLogSourceDisplay["CONSOLE"] = "console";
+ FrontendLogSourceDisplay["UNCAUGHT_EXCEPTION"] = "uncaught exception";
+ FrontendLogSourceDisplay["UNHANDLED_REJECTION"] = "unhandled rejection";
+})(FrontendLogSourceDisplay || (FrontendLogSourceDisplay = {}));
const greenTick = `${chalk_1.default.bold(chalk_1.default.green('✔'))}`;
const buildTerminalLink = (text) => (0, terminal_link_1.default)(chalk_1.default.bold(text), text, { fallback: () => chalk_1.default.underline.bold(text) });
const buildTerminalLabeledLink = (label, link) => (0, terminal_link_1.default)(chalk_1.default.bold(label), link, { fallback: () => chalk_1.default.underline.bold(label) });
const go = (link) => buildTerminalLink(`https://go.atlassian.com/${link}`);
@@ -1336,8 +1342,26 @@
}
},
logs: {
cmd: 'view app logs',
+ metadata: {
+ appVersion: 'App version',
+ invocationId: 'Invocation ID',
+ functionName: 'Function name',
+ functionTrigger: 'Function trigger',
+ logSource: 'Log source',
+ browserName: 'Browser name',
+ browserVersion: 'Browser version',
+ operatingSystem: 'Operating system',
+ errorType: 'Error type',
+ extensionType: 'Extension type',
+ installationId: 'Installation ID',
+ renderType: 'Render type',
+ userAgent: 'User agent'
+ },
+ metadataLine: (label, value) => ` ${label}: ${value}`,
+ displayLogSource: (logSource) => FrontendLogSourceDisplay[logSource] ?? logSource,
+ invocationHeading: (invocationId) => `invocation: ${invocationId}`,
optionInvocation: 'view logs for a given invocation ID',
optionLimit: 'number of log lines to return',
optionGroup: 'group logs by invocation ID',
optionContainer: 'view logs for a given container',