You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/completion-handlers.ts
-57Lines changed: 0 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -1,62 +1,5 @@
1
1
// TODO: i do not see any completion functionality in this file. nothing is being provided for the defined commands of these package managers. this is a blocker for release. every each of them should be handled.
2
2
import{Completion}from'../src/index.js';
3
-
import{execSync}from'child_process';
4
-
5
-
constDEBUG=false;// for debugging purposes
6
-
7
-
functiondebugLog(...args: any[]){
8
-
if(DEBUG){
9
-
console.error('[DEBUG]', ...args);
10
-
}
11
-
}
12
-
13
-
asyncfunctioncheckCliHasCompletions(
14
-
cliName: string,
15
-
packageManager: string
16
-
): Promise<boolean>{
17
-
try{
18
-
debugLog(`Checking if ${cliName} has completions via ${packageManager}`);
timeout: 1000,// AMIR: we still havin issues with this, it still hangs if a cli doesn't have completions. longer timeout needed for shell completion system (shell → node → package manager → cli)
0 commit comments