Skip to content

Support piping process IDs via standard input#27

Merged
kzu merged 1 commit into
mainfrom
dev/stdin-pipe-support
May 5, 2026
Merged

Support piping process IDs via standard input#27
kzu merged 1 commit into
mainfrom
dev/stdin-pipe-support

Conversation

@kzu
Copy link
Copy Markdown
Member

@kzu kzu commented May 5, 2026

Allow usage like \Get-Process -Name foo | dnx stop\ in addition to the existing \dnx stop \ invocation.

When no process ID argument is provided, the tool reads PIDs from stdin, supporting two formats:

  • PowerShell \Get-Process\ table output (detects \Id\ column by header/separator)
  • Plain integers, one per line (e.g. from \Select-Object -ExpandProperty Id)

Multiple PIDs are deduplicated and stopped sequentially. Exit code is non-zero if any stop operation fails.

Allow usage like \Get-Process -Name foo | dnx stop\ in addition to
the existing \dnx stop <id>\ invocation.

When no process ID argument is provided, the tool reads PIDs from stdin,
supporting two formats:
- PowerShell Get-Process table output (detects 'Id' column by header/separator)
- Plain integers, one per line (e.g. from Select-Object -ExpandProperty Id)

Multiple PIDs are deduplicated and stopped sequentially. Exit code is
non-zero if any stop operation fails.
@kzu kzu enabled auto-merge (rebase) May 5, 2026 17:40
@kzu kzu merged commit 84b8996 into main May 5, 2026
6 checks passed
@kzu kzu deleted the dev/stdin-pipe-support branch May 5, 2026 17:42
@kzu kzu added the enhancement New feature or request label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant