Skip to content

Commit 4e6ee90

Browse files
committed
add more logs
1 parent 4d65f3d commit 4e6ee90

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bin/cli.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ async function main() {
4040
? args.slice(2)
4141
: null;
4242

43+
if (process.env.TAB_DEBUG) {
44+
console.error('COMPLETION ARGS:', completionArgs);
45+
}
46+
4347
if (!completionArgs) {
4448
console.error(`Error: Expected '--' followed by command to complete`);
4549
process.exit(1);

bin/package-manager-completion.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ export class PackageManagerCompletion extends RootCommand {
105105
}
106106

107107
async parse(args: string[]) {
108+
if (process.env.TAB_DEBUG) {
109+
console.error('[DEBUG] package-manager-completion args:', args);
110+
}
111+
108112
const normalizedArgs = this.stripPackageManagerCommands(args);
109113

110114
if (normalizedArgs.length >= 1 && normalizedArgs[0].trim() !== '') {

0 commit comments

Comments
 (0)