Skip to content

Commit ccf48ee

Browse files
Make gas non-tty compatible
1 parent ef063bb commit ccf48ee

File tree

7 files changed

+2
-7
lines changed

7 files changed

+2
-7
lines changed

lib/clone.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ module.exports = (identifier) => {
5353

5454
const downloaded = Promise.all([gotAuth, gotMetadata, ]).then((values) => {
5555
const metadata = values[1];
56-
process.stdout.clearLine();
5756
readline.cursorTo(process.stdout, 0);
5857
process.stdout.write(`Cloning \'${metadata.name}\' from Google Drive...`);
5958
return downloadRemote(values[0], metadata.id, metadata.name, 'clone');

lib/pull.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ module.exports = (fileName, options) => {
5151
});
5252

5353
const downloaded = Promise.all([gotAuth, gotId, gotMetadata, gotProjectRoot, ]).then((values) => {
54-
process.stdout.clearLine();
5554
readline.cursorTo(process.stdout, 0);
5655
if (fileName) {
5756
process.stdout.write(`Pulling \'${values[2].name} > ${fileName}\' from Google Drive...`);

lib/push.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ module.exports = (fileName) => {
5252
});
5353

5454
const downloaded = Promise.all([gotAuth, gotId, gotMetadata, gotProjectRoot, ]).then((values) => {
55-
process.stdout.clearLine();
5655
readline.cursorTo(process.stdout, 0);
5756
if (fileName) {
5857
process.stdout.write(`Pushing \'${values[2].name} > ${fileName}\' to Google Drive...`);

lib/remote-delete.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ module.exports = (identifier) => {
2929

3030
const deleted = Promise.all([gotAuth, gotMetadata, ]).then((values) => {
3131
const metadata = values[1];
32-
process.stdout.clearLine();
3332
readline.cursorTo(process.stdout, 0);
3433
process.stdout.write(`Deleting \'${metadata.name}\' from your Google Drive...`);
3534
return remoteDeleteProject(values[0], metadata.id, metadata.name);

lib/remote-rename.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ module.exports = (identifier, newProjectName) => {
3030

3131
const renamed = Promise.all([gotAuth, gotMetadata, ]).then((values) => {
3232
const metadata = values[1];
33-
process.stdout.clearLine();
3433
readline.cursorTo(process.stdout, 0);
3534
process.stdout.write(`Renaming \'${metadata.name}\' to \'${newProjectName}\' in your Google Drive...`);
3635
return remoteRenameProject(values[0], metadata.id, metadata.name, newProjectName);

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-apps-script",
3-
"version": "3.0.0",
3+
"version": "2.3.1",
44
"description": "gas, the complete CLI for Google Apps Script",
55
"main": "index",
66
"bin": {

0 commit comments

Comments
 (0)