Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,17 @@
"resolve": "^1.22.1",
"rimraf": "^6.0.1",
"slugify": "^1.6.5",
"tinyrainbow": "^3.0.3",
"ts-jest": "^29.1.4",
"tsup": "^8.1.0",
"typescript": "^5.2.2",
"uuid": "^11.1.0",
"yesno": "^0.4.0"
},
"dependencies": {
"cli-spinners": "^2.9.2",
"deep-diff": "^1.0.2",
"log-update": "^4.0.0",
"tmp": "^0.2.3"
}
}
9 changes: 4 additions & 5 deletions src/ops/ScriptOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
printError,
printMessage,
showSpinner,
spinSpinner,
stopProgressIndicator,
succeedSpinner,
updateProgressIndicator,
Expand Down Expand Up @@ -279,13 +278,13 @@
): Promise<boolean> {
debugMessage(`Cli.ScriptOps.exportScriptToFile: start`);
try {
showSpinner(`Exporting script '${scriptId}'...`);
const id = showSpinner(`Exporting script '${scriptId}'...`);
let fileName = getTypedFilename(scriptId, 'script');
if (file) {
fileName = file;
}
const filePath = getFilePath(fileName, true);
spinSpinner(`Exporting script '${scriptId}' to '${filePath}'...`);
updateProgressIndicator(id, `Exporting script '${scriptId}' to '${filePath}'...`);

Check warning on line 287 in src/ops/ScriptOps.ts

View workflow job for this annotation

GitHub Actions / Build

Replace `id,·`Exporting·script·'${scriptId}'·to·'${filePath}'...`` with `⏎······id,⏎······`Exporting·script·'${scriptId}'·to·'${filePath}'...`⏎····`
const scriptExport = await exportScript(scriptId, options);
if (extract) {
extractScriptsToFiles(scriptExport, undefined, undefined, false);
Expand Down Expand Up @@ -319,13 +318,13 @@
): Promise<boolean> {
debugMessage(`Cli.ScriptOps.exportScriptByNameToFile: start`);
try {
showSpinner(`Exporting script '${name}'...`);
const id = showSpinner(`Exporting script '${name}'...`);
let fileName = getTypedFilename(name, 'script');
if (file) {
fileName = file;
}
const filePath = getFilePath(fileName, true);
spinSpinner(`Exporting script '${name}' to '${filePath}'...`);
updateProgressIndicator(id, `Exporting script '${name}' to '${filePath}'...`);

Check warning on line 327 in src/ops/ScriptOps.ts

View workflow job for this annotation

GitHub Actions / Build

Replace `id,·`Exporting·script·'${name}'·to·'${filePath}'...`` with `⏎······id,⏎······`Exporting·script·'${name}'·to·'${filePath}'...`⏎····`
const scriptExport = await exportScriptByName(name, options);
if (extract) extractScriptsToFiles(scriptExport);
saveJsonToFile(scriptExport, filePath, includeMeta);
Expand Down
Loading
Loading