UnixPwdCommand
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| PwdCommand anyenv.os_commands.base Base class for pwd (print working directory) commands. |
⋔ Inheritance diagram¶
graph TD
475780388["pwd.UnixPwdCommand"]
2510224188["base.PwdCommand"]
925645236["abc.ABC"]
2751680898["builtins.object"]
2510224188 --> 475780388
925645236 --> 2510224188
2751680898 --> 925645236
🛈 DocStrings¶
Bases: PwdCommand
Unix/Linux pwd command implementation.
Source code in src/anyenv/os_commands/pwd.py
create_command
¶
parse_command
¶
Parse Unix pwd result.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output
|
str
|
Raw command output |
required |
exit_code
|
int
|
Command exit code |
0
|
Returns:
| Type | Description |
|---|---|
str | None
|
Current working directory or None on failure |