Skip to content

Commit 3194295

Browse files
committed
Fixed some more issues
1 parent 3c63ae3 commit 3194295

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/commands/build/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import writeToExport from "./writeToExport.js";
1919
export default async function buildCommand(str: any, options: Command) {
2020
const now = Date.now();
2121
const autoOverwrite = str.overwrite ?? false;
22-
const keepLines = str.keeplines ?? false;
2322
const maxSteps = 6;
2423
await checkForOutdatedVersion();
2524
const config = await checkForSpikyConfig({ current: 1, max: maxSteps });

src/commands/init/generateNewConfigWithoutDefaults.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default async function generateNewConfigWithoutDefault(
2323
formSteps(functionIndexes)
2424
)} Waiting for your input`
2525
);
26+
console.log("");
2627
await inquirer
2728
.prompt([
2829
{
@@ -127,7 +128,11 @@ export default async function generateNewConfigWithoutDefault(
127128
);
128129
throw err;
129130
});
130-
defaultConfig.export.exportFileName = answers.exportfileName;
131+
defaultConfig.export.exportFileName = answers.exportfileName.incluces(
132+
".py"
133+
)
134+
? answers.exportfileName
135+
: answers.exportfileName + ".py";
131136
defaultConfig.export.formatOutput = answers.formatted === "formatted";
132137
} else {
133138
return false;

src/commands/init/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default async function initCommand(str: any, options: Command) {
6161
return;
6262
} else {
6363
updateOldConsole(
64-
`${chalk.grey.italic(
64+
`${chalk.green.italic(
6565
formSteps({ current: 2, max: maxSteps })
6666
)} Overwriting the existing config.spiky.json file.`,
6767
true
@@ -73,6 +73,8 @@ export default async function initCommand(str: any, options: Command) {
7373
} else {
7474
await generateNewConfigWithoutDefault({ current: 3, max: maxSteps });
7575
}
76+
console.log("");
77+
process.stdout.cursorTo(0);
7678
console.log(
7779
` ===== Initializing took ${chalk.yellowBright(Date.now() - now + "ms")}`
7880
);

0 commit comments

Comments
 (0)