Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 47cd88f72b | |||
| 6a98ef4bed |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shsf-cli",
|
"name": "shsf-cli",
|
||||||
"version": "2.1.7",
|
"version": "2.1.8",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ export const pullDefinition = {
|
|||||||
}
|
}
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
fs.writeFileSync(path.join(options.into, file.name), file.content);
|
fs.writeFileSync(path.join(options.into, file.name), file.content);
|
||||||
|
const byteSize = Buffer.byteLength(file.content, 'utf8');
|
||||||
|
console.log(chalk.green(`Pulled ${file.name} (${byteSize} bytes)`));
|
||||||
}
|
}
|
||||||
console.log(chalk.green(`Successfully pulled ${files.length} files into ${options.into}`));
|
console.log(chalk.green(`Successfully pulled ${files.length} files into ${options.into}`));
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
|||||||
@@ -97,8 +97,9 @@ export const pushDefinition = {
|
|||||||
code: file.content,
|
code: file.content,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const byteSize = Buffer.byteLength(file.content, 'utf8');
|
||||||
console.log(
|
console.log(
|
||||||
chalk.green(`Pushed ${file.filename} to function ${options.id}`),
|
chalk.green(`Pushed ${file.filename} (${byteSize} bytes) to function ${options.id}`),
|
||||||
);
|
);
|
||||||
pushedFilesCount++;
|
pushedFilesCount++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user