Expand description
Target resolution - Convert user input to processes
Targets can be:
:port- Process listening on this portpid- Process with this PID (numeric)name- Processes matching this name
Structs§
- Resolved
- What resolving several targets came to
Enums§
- Target
Type - Resolved target type
Functions§
- comma_
notice - The deprecation notice for comma-separated targets, if the command line
used any, or
None. - find_
ports_ for_ pid - Find all ports a process is listening on
- flatten_
targets - Split every target argument the user typed into individual targets
- parse_
target - Parse a target string and determine its type
- parse_
targets - Split comma-separated targets into individual target strings
- resolve_
target - Resolve a target to processes;
modesays how a name is compared - resolve_
targets - Resolve multiple targets, deduplicating by PID
- resolve_
targets_ excluding_ self - Resolve multiple targets, excluding the current process (self)
- validate_
target_ arg - clap value parser for target arguments: a target that starts with ‘:’ must be a port from 1 to 65535. Without this, “:70000” fell through to a name search and reported “not found” instead of a typo.