Skip to content

Commit 1e31bfe

Browse files
committed
1.6.1: Fix shell completion to use require() instead of fragile regex parsing for command extraction
1 parent f4ed095 commit 1e31bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/completion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function discoverCommandTree(dir: string = __dirname, parentPath: string = ''):
9797
*/
9898
function extractCommandInfo(filePath: string): CommandInfo | null {
9999
try {
100-
// eslint-disable-next-line @typescript-eslint/no-var-requires
100+
101101
const cmd = require(filePath);
102102
const command = cmd.default || cmd;
103103

0 commit comments

Comments
 (0)