Comparing version 1.2.7 to 1.2.8
@@ -9,4 +9,4 @@ import { Listr } from '../listr'; | ||
newListr<Ctx = InjectCtx>(tasks: ListrTask<Ctx>[], options?: ListrOptions<Ctx>): Listr<Ctx>; | ||
indent<Ctx = ListrContext>(tasks: ListrTask<Ctx>[], options?: ListrOptions<Ctx>): ListrTask<Ctx>; | ||
indent<Ctx = ListrContext>(tasks: ListrTask<Ctx>[], options?: ListrOptions<Ctx>, title?: string): ListrTask<Ctx>; | ||
getRunTime(pipetime: number): string; | ||
} |
@@ -8,5 +8,5 @@ import { ListrContext, ListrOptions, ListrTask } from './interfaces/listr.interface'; | ||
newListr<Ctx = InjectCtx>(tasks: ListrTask<Ctx>[], options?: ListrOptions<Ctx>): Listr<Ctx>; | ||
indent<Ctx = InjectCtx>(tasks: ListrTask<Ctx>[], options?: ListrOptions<Ctx>): ListrTask<Ctx>; | ||
indent<Ctx = InjectCtx>(tasks: ListrTask<Ctx>[], options?: ListrOptions<Ctx>, title?: string): ListrTask<Ctx>; | ||
run<Ctx = InjectCtx>(tasks: ListrTask<Ctx>[], options?: ListrOptions<Ctx>): Promise<Ctx>; | ||
getRuntime(pipetime: number): string; | ||
} |
@@ -19,4 +19,5 @@ "use strict"; | ||
} | ||
indent(tasks, options) { | ||
indent(tasks, options, title) { | ||
const newTask = { | ||
title, | ||
task: () => this.newListr(tasks, options) | ||
@@ -23,0 +24,0 @@ }; |
{ | ||
"name": "listr2", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Terminal task list reborn!", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
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
72865
1088