Skip to content

Commit 2ffb7b1

Browse files
committed
logs
1 parent 1bc06fd commit 2ffb7b1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

bin/cli.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ async function main() {
5151
completionArgs.push('');
5252
}
5353

54+
if (process.env.TAB_DEBUG) {
55+
console.error('COMPLETION ARGS:', completionArgs);
56+
}
57+
5458
if (!completionArgs) {
5559
console.error(`Error: Expected '--' followed by command to complete`);
5660
process.exit(1);

bin/package-manager-completion.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ async function getCliCompletions(
126126
packageManager: string,
127127
args: string[]
128128
): Promise<string[]> {
129+
if (process.env.TAB_DEBUG) {
130+
console.error('[DEBUG] getCliCompletions input:', {
131+
cliName,
132+
packageManager,
133+
args,
134+
});
135+
}
129136
try {
130137
const result = runCompletionCommand(cliName, [], args);
131138
if (result) {
@@ -137,6 +144,9 @@ async function getCliCompletions(
137144

138145
try {
139146
const result = runCompletionCommand(packageManager, [cliName], args);
147+
if (process.env.TAB_DEBUG) {
148+
console.error('[DEBUG] getCliCompletions pnpm result:', result);
149+
}
140150
return result.split('\n').filter(Boolean);
141151
} catch {
142152
return [];

0 commit comments

Comments
 (0)