File tree Expand file tree Collapse file tree 5 files changed +135
-60
lines changed Expand file tree Collapse file tree 5 files changed +135
-60
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,8 @@ const logout = new Command("logout")
188
188
const sessions = globalConfig.getSessions();
189
189
const current = globalConfig.getCurrentSession();
190
190
191
- if (current === '') {
191
+ if (current === '' || !sessions.length) {
192
+ log('No active sessions found.');
192
193
return;
193
194
}
194
195
if (sessions.length === 1) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const pullResources = async () => {
27
27
if (cliConfig.all) {
28
28
for (let action of Object.values(actions)) {
29
29
cliConfig.all = true;
30
- await action();
30
+ await action({} );
31
31
}
32
32
} else {
33
33
const answers = await inquirer.prompt(questionsPullResources[0]);
@@ -92,7 +92,7 @@ const pullFunctions = async ({ code }) => {
92
92
if (!fs.existsSync(func['path'])) {
93
93
fs.mkdirSync(func['path'], { recursive: true });
94
94
}
95
-
95
+
96
96
if(code === false) {
97
97
warn("Source code download skipped.");
98
98
} else if(!func['deployment']) {
@@ -114,14 +114,14 @@ const pullFunctions = async ({ code }) => {
114
114
overrideForCli: true,
115
115
parseOutput: false
116
116
});
117
-
117
+
118
118
tar.extract({
119
119
sync: true,
120
120
cwd: func['path'],
121
121
file: compressedFileName,
122
122
strict: false,
123
123
});
124
-
124
+
125
125
fs.rmSync(compressedFileName);
126
126
}
127
127
}
You can’t perform that action at this time.
0 commit comments