@liara/cli
Advanced tools
Comparing version 5.7.0-beta.4 to 5.7.0-beta.5
@@ -167,3 +167,3 @@ var _a; | ||
if (error.message === 'TIMEOUT') { | ||
this.error('Build timed out. It took about 10 minutes.'); | ||
this.error('Build timed out. It took about 20 minutes.'); | ||
} | ||
@@ -284,2 +284,17 @@ if (error.response && | ||
async showBuildLogs(releaseID) { | ||
while (true) { | ||
try { | ||
const { release } = await this.got(`v1/releases/${releaseID}`).json(); | ||
if (!release.queue) { | ||
break; | ||
} | ||
this.spinner.start(`Waiting for the build, ${release.queue} people(s) ahead...`); | ||
await new Promise((resolve) => setTimeout(resolve, 1000)); | ||
} | ||
catch (error) { | ||
// tslint:disable-next-line: no-console | ||
console.error(error.output.line); | ||
throw new Error('Build failed.'); | ||
} | ||
} | ||
this.spinner.start('Building...'); | ||
@@ -286,0 +301,0 @@ let isCanceled = false; |
@@ -5,2 +5,3 @@ export default interface IRelease { | ||
failReason?: string; | ||
queue?: number; | ||
} |
{ | ||
"name": "@liara/cli", | ||
"description": "The command line interface for Liara", | ||
"version": "5.7.0-beta.4", | ||
"version": "5.7.0-beta.5", | ||
"author": "Mhe <mhemrg120@gmail.com> (http://liara.ir/) @mhemrg", | ||
@@ -6,0 +6,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
519951
12189