1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const cli_ux_1 = require("cli-ux");
|
4 | const fs = require("fs");
|
5 | const logSymbols = require('log-symbols');
|
6 | exports.askForScriptPath = async () => {
|
7 | console.log();
|
8 | const scriptPath = await cli_ux_1.cli.prompt('Enter the relative path to your raw script file');
|
9 | if (!fs.existsSync(scriptPath)) {
|
10 | console.log();
|
11 | console.log(logSymbols.error, `The file: ${scriptPath} does not exist.`);
|
12 | return exports.askForScriptPath();
|
13 | }
|
14 | return scriptPath;
|
15 | };
|