@oclif/multi-stage-output 0.3.0 → 0.3.1
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 +1 -1
- package/lib/design.d.ts +1 -1
- package/lib/design.js +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
const getSideDividerWidth = (width, titleWidth) => (width - titleWidth) / 2;
|
|
4
4
|
const getNumberOfCharsPerWidth = (char, width) => width / char.length;
|
|
5
5
|
const PAD = ' ';
|
|
6
|
-
export function Divider({ dividerChar = '─', dividerColor = 'dim', padding = 1, textColor
|
|
6
|
+
export function Divider({ dividerChar = '─', dividerColor = 'dim', padding = 1, textColor, textPadding: titlePadding = 1, title = '', width = 50, }) {
|
|
7
7
|
const titleString = title ? `${PAD.repeat(titlePadding) + title + PAD.repeat(titlePadding)}` : '';
|
|
8
8
|
const titleWidth = titleString.length;
|
|
9
9
|
const terminalWidth = process.stdout.columns ?? 80;
|
package/lib/design.d.ts
CHANGED
package/lib/design.js
CHANGED
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.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/multi-stage-output/issues",
|
|
7
7
|
"dependencies": {
|