Skip to content

Commit 432614a

Browse files
committed
feat: Added auto complete, additional version flags, additional help flags and set the default command to edit
1 parent 821bef6 commit 432614a

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,13 @@
106106
"bin": "codify",
107107
"dirname": "codify",
108108
"commands": "./dist/commands",
109+
"additionalVersionFlags": ["-v"],
110+
"additionalHelpFlags": ["-h"],
111+
"defaultCommand": "edit",
109112
"plugins": [
110113
"@oclif/plugin-help",
111-
"@oclif/plugin-update"
114+
"@oclif/plugin-update",
115+
"@oclif/plugin-autocomplete"
112116
],
113117
"topicSeparator": " ",
114118
"topics": {},

scripts/pkg.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { execSync } from 'node:child_process'
33
import fs from 'node:fs/promises'
44
import path from 'node:path';
55

6+
// Create .build folder if it does not exist
7+
try {
8+
await fs.mkdir('./.build')
9+
} catch (err) {}
10+
611
console.log(chalk.magenta('Removing everything in ./.build except tmp'))
712
await fs.readdir('./.build')
813
.then((files) =>

0 commit comments

Comments
 (0)