Skip to content

Commit 6454475

Browse files
committed
revert
1 parent 4fb3102 commit 6454475

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

bin/package-manager-completion.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,7 @@ export class PackageManagerCompletion extends RootCommand {
105105
}
106106

107107
async parse(args: string[]) {
108-
const isPowerShell = process.platform === 'win32' && process.env.PSModulePath;
109-
const dashIndex = process.argv.indexOf('--');
110-
111-
const completionArgs =
112-
dashIndex !== -1 && (!isPowerShell || dashIndex < process.argv.length - 1)
113-
? process.argv.slice(dashIndex + 1)
114-
: isPowerShell
115-
? process.argv.slice(process.argv.indexOf('complete') + 1)
116-
: args;
117-
118-
const normalizedArgs = this.stripPackageManagerCommands(completionArgs);
108+
const normalizedArgs = this.stripPackageManagerCommands(args);
119109

120110
if (normalizedArgs.length >= 1 && normalizedArgs[0].trim() !== '') {
121111
const potentialCliName = normalizedArgs[0];

0 commit comments

Comments
 (0)