@oclif/multi-stage-output 0.4.3-dev.0 → 0.4.3-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/divider.js +4 -0
- package/lib/components/stages.js +1 -1
- package/lib/design.d.ts +4 -0
- package/lib/design.js +7 -0
- package/lib/stage-tracker.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,10 @@ export function Divider({ dividerChar = '─', dividerColor = 'dim', padding = 1
|
|
|
14
14
|
? terminalWidth - textPadding - padding
|
|
15
15
|
: // otherwise, use the provided width
|
|
16
16
|
width;
|
|
17
|
+
// Don't render if the available width is less than the title width
|
|
18
|
+
if (widthToUse < titleWidth) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
17
21
|
const dividerWidth = getSideDividerWidth(widthToUse, titleWidth);
|
|
18
22
|
const numberOfCharsPerSide = getNumberOfCharsPerWidth(dividerChar, dividerWidth);
|
|
19
23
|
const dividerSideString = dividerChar.repeat(numberOfCharsPerSide);
|
package/lib/components/stages.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Timer } from './timer.js';
|
|
|
9
9
|
function StaticKeyValue({ color, isBold, label, value }) {
|
|
10
10
|
if (!value)
|
|
11
11
|
return false;
|
|
12
|
-
return (React.createElement(Box, { key: label },
|
|
12
|
+
return (React.createElement(Box, { key: label, flexWrap: "wrap" },
|
|
13
13
|
React.createElement(Text, { bold: isBold },
|
|
14
14
|
label,
|
|
15
15
|
": "),
|
package/lib/design.d.ts
CHANGED
package/lib/design.js
CHANGED
|
@@ -65,6 +65,13 @@ export function constructDesignParams(design) {
|
|
|
65
65
|
paddingRight: 1,
|
|
66
66
|
...design?.icons?.skipped,
|
|
67
67
|
},
|
|
68
|
+
warning: {
|
|
69
|
+
color: 'yellow',
|
|
70
|
+
figure: figures.warning,
|
|
71
|
+
paddingLeft: 0,
|
|
72
|
+
paddingRight: 0,
|
|
73
|
+
...design?.icons?.warning,
|
|
74
|
+
},
|
|
68
75
|
},
|
|
69
76
|
spinners: {
|
|
70
77
|
info: process.platform === 'win32' ? 'line' : 'arc',
|
package/lib/stage-tracker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type StageStatus = 'aborted' | 'async' | 'completed' | 'current' | 'failed' | 'paused' | 'pending' | 'skipped';
|
|
1
|
+
export type StageStatus = 'aborted' | 'async' | 'completed' | 'current' | 'failed' | 'paused' | 'pending' | 'skipped' | 'warning';
|
|
2
2
|
export declare class StageTracker {
|
|
3
3
|
private stages;
|
|
4
4
|
current: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/multi-stage-output",
|
|
3
3
|
"description": "Terminal output for oclif commands with multiple stages",
|
|
4
|
-
"version": "0.4.3-dev.
|
|
4
|
+
"version": "0.4.3-dev.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/multi-stage-output/issues",
|
|
7
7
|
"dependencies": {
|