@oclif/multi-stage-output
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -1,1 +0,1 @@ | ||
export { MultiStageOutput } from './multi-stage-output.js'; | ||
export { MultiStageOutput, MultiStageOutputOptions } from './multi-stage-output.js'; |
import { KeyValuePair, SimpleMessage, StageInfoBlock } from './components/stages.js'; | ||
import { Design } from './design.js'; | ||
type MultiStageOutputOptions<T extends Record<string, unknown>> = { | ||
export type MultiStageOutputOptions<T extends Record<string, unknown>> = { | ||
/** | ||
@@ -45,8 +45,2 @@ * Stages to render. | ||
/** | ||
* Whether JSON output is enabled. Defaults to false. | ||
* | ||
* Pass in this.jsonEnabled() from the command class to determine if JSON output is enabled. | ||
*/ | ||
readonly jsonEnabled: boolean; | ||
/** | ||
* Design options to customize the output. | ||
@@ -71,3 +65,3 @@ */ | ||
private readonly title?; | ||
constructor({ data, design, jsonEnabled, postStagesBlock, preStagesBlock, showElapsedTime, showStageTime, stageSpecificBlock, stages, timerUnit, title, }: MultiStageOutputOptions<T>); | ||
constructor({ data, design, postStagesBlock, preStagesBlock, showElapsedTime, showStageTime, stageSpecificBlock, stages, timerUnit, title, }: MultiStageOutputOptions<T>); | ||
goto(stage: string, data?: Partial<T>): void; | ||
@@ -83,2 +77,1 @@ next(data?: Partial<T>): void; | ||
} | ||
export {}; |
@@ -147,3 +147,3 @@ import { ux } from '@oclif/core/ux'; | ||
title; | ||
constructor({ data, design, jsonEnabled, postStagesBlock, preStagesBlock, showElapsedTime, showStageTime, stageSpecificBlock, stages, timerUnit, title, }) { | ||
constructor({ data, design, postStagesBlock, preStagesBlock, showElapsedTime, showStageTime, stageSpecificBlock, stages, timerUnit, title, }) { | ||
this.data = data; | ||
@@ -160,4 +160,2 @@ this.design = constructDesignParams(design); | ||
this.stageSpecificBlock = stageSpecificBlock; | ||
if (jsonEnabled) | ||
return; | ||
if (isInCi) { | ||
@@ -167,3 +165,2 @@ this.ciInstance = new CIMultiStageOutput({ | ||
design, | ||
jsonEnabled, | ||
postStagesBlock, | ||
@@ -170,0 +167,0 @@ preStagesBlock, |
{ | ||
"name": "@oclif/multi-stage-output", | ||
"description": "Terminal output for oclif commands with multiple stages", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/multi-stage-output/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
40707
914