Skip to content

Commit 74f7ef7

Browse files
committed
add debug
1 parent 507b267 commit 74f7ef7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/cli.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ async function main() {
1313
const cli = cac('tab');
1414

1515
const args = process.argv.slice(2);
16+
1617
if (args.length >= 2 && args[1] === 'complete') {
1718
const packageManager = args[0];
1819

@@ -70,9 +71,12 @@ async function main() {
7071

7172
function generateCompletionScript(packageManager: string, shell: string) {
7273
const name = packageManager;
74+
console.error('DEBUG: npm_execpath =', process.env.npm_execpath);
75+
console.error('DEBUG: process.argv[1] =', process.argv[1]);
7376
const executable = process.env.npm_execpath
7477
? `${packageManager} exec @bombsh/tab ${packageManager}`
7578
: `node ${process.argv[1]} ${packageManager}`;
79+
console.error('DEBUG: executable =', executable);
7680
script(shell as any, name, executable);
7781
}
7882

0 commit comments

Comments
 (0)