WindowsWhichCommand
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| WhichCommand anyenv.os_commands.base Base class for which/where commands to locate executables. |
⋔ Inheritance diagram¶
graph TD
1920853082["which.WindowsWhichCommand"]
2658962468["base.WhichCommand"]
925645236["abc.ABC"]
2751680898["builtins.object"]
2658962468 --> 1920853082
925645236 --> 2658962468
2751680898 --> 925645236
🛈 DocStrings¶
Bases: WhichCommand
Windows where command implementation.
Source code in src/anyenv/os_commands/which.py
create_command
¶
Generate Windows where command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
executable
|
str
|
Name of executable to find |
required |
Returns:
| Type | Description |
|---|---|
str
|
The where command string |
Source code in src/anyenv/os_commands/which.py
parse_command
¶
Parse Windows where result.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output
|
str
|
Raw command output |
required |
exit_code
|
int
|
Command exit code |
0
|
Returns:
| Type | Description |
|---|---|
str | None
|
Path to first matching executable or None if not found |