Skip to content

Commit acbdb94

Browse files
authored
fix(completion): complete workspaces with -F alias as for --filter (#12788)
1 parent 99982b9 commit acbdb94

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pnpm/cli.commands": patch
3+
"pnpm": patch
4+
---
5+
6+
Fixed shell tab completion not suggesting workspaces after the `-F` alias for `--filter` option.

‎pnpm11/cli/commands/src/completion/complete.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function complete (
3232

3333
// Autocompleting option values
3434
if (input.currentTypedWordType !== 'option') {
35-
if (input.lastOption === '--filter') {
35+
if (input.lastOption === '--filter' || input.lastOption === '-F') {
3636
const workspaceDir = await findWorkspaceDir(process.cwd()) ?? process.cwd()
3737
const workspaceManifest = await readWorkspaceManifest(workspaceDir)
3838
const allProjects = await findWorkspaceProjects(workspaceDir, {

0 commit comments

Comments
 (0)