@tolgee/cli
Advanced tools
Comparing version 1.0.0-prerelease.1 to 1.0.0-rc.1
@@ -8,2 +8,3 @@ #!/usr/bin/env node | ||
const commander_1 = require("commander"); | ||
const ansi_colors_1 = __importDefault(require("ansi-colors")); | ||
const credentials_1 = require("./config/credentials"); | ||
@@ -23,2 +24,3 @@ const tolgeerc_1 = __importDefault(require("./config/tolgeerc")); | ||
const NO_KEY_COMMANDS = ['login', 'logout', 'extract']; | ||
ansi_colors_1.default.enabled = process.stdout.isTTY; | ||
function topLevelName(command) { | ||
@@ -25,0 +27,0 @@ return command.parent && command.parent.parent |
@@ -79,2 +79,8 @@ "use strict"; | ||
function loading(comment, promise) { | ||
if (!process.stdout.isTTY) { | ||
// Simple stdout without animations | ||
process.stdout.write(comment); | ||
promise.then(() => process.stdout.write(` ✓ Success\n`), () => process.stdout.write(` ✗ Failure\n`)); | ||
return promise; | ||
} | ||
let symbolPosition = 0; | ||
@@ -81,0 +87,0 @@ const interval = setInterval(() => { |
{ | ||
"name": "@tolgee/cli", | ||
"version": "1.0.0-prerelease.1", | ||
"version": "1.0.0-rc.1", | ||
"type": "commonjs", | ||
@@ -79,3 +79,3 @@ "description": "A tool to interact with the Tolgee Platform through CLI", | ||
"channel": "rc", | ||
"prerelease": true | ||
"prerelease": "rc" | ||
} | ||
@@ -82,0 +82,0 @@ ], |
901906
3071