We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 507b267 commit 74f7ef7Copy full SHA for 74f7ef7
1 file changed
bin/cli.ts
@@ -13,6 +13,7 @@ async function main() {
13
const cli = cac('tab');
14
15
const args = process.argv.slice(2);
16
+
17
if (args.length >= 2 && args[1] === 'complete') {
18
const packageManager = args[0];
19
@@ -70,9 +71,12 @@ async function main() {
70
71
72
function generateCompletionScript(packageManager: string, shell: string) {
73
const name = packageManager;
74
+ console.error('DEBUG: npm_execpath =', process.env.npm_execpath);
75
+ console.error('DEBUG: process.argv[1] =', process.argv[1]);
76
const executable = process.env.npm_execpath
77
? `${packageManager} exec @bombsh/tab ${packageManager}`
78
: `node ${process.argv[1]} ${packageManager}`;
79
+ console.error('DEBUG: executable =', executable);
80
script(shell as any, name, executable);
81
}
82
0 commit comments