shell_events
Symbol Details
type_alias: OutputCallbackT
OutputCallbackT = typing.Callable[[str], bool | None]
Changes
| Version |
Change |
| 0.3.0 |
Made public |
class: ShellRunAfter
class ShellRunAfter:
run: ShellRun
error: BaseException | None = None
| Field |
Type |
Default |
Since |
| run |
ShellRun |
- |
0.3.0 |
| error |
BaseException | None |
None |
0.3.0 |
Changes
| Version |
Change |
| 0.3.0 |
Made public |
class: ShellRunBefore
class ShellRunBefore:
run: ShellRun
| Field |
Type |
Default |
Since |
| run |
ShellRun |
- |
0.3.0 |
Changes
| Version |
Change |
| 0.3.0 |
Made public |
type_alias: ShellRunCallbackT
ShellRunCallbackT = typing.Callable[[typing.Union[ask_shell._internal.events.ShellRunBefore, ask_shell._internal.events.ShellRunPOpenStarted, ask_shell._internal.events.ShellRunStdStarted, ask_shell._internal.events.ShellRunStdReadError, ask_shell._internal.events.ShellRunStdOutput, ask_shell._internal.events.ShellRunRetryAttempt, ask_shell._internal.events.ShellRunAfter]], bool | None]
Changes
| Version |
Change |
| 0.3.0 |
Made public |
class: ShellRunPOpenStarted
class ShellRunPOpenStarted:
p_open: Popen
| Field |
Type |
Default |
Since |
| p_open |
Popen |
- |
0.3.0 |
Changes
| Version |
Change |
| 0.3.0 |
Made public |
class: ShellRunRetryAttempt
class ShellRunRetryAttempt:
attempt: int
| Field |
Type |
Default |
Since |
| attempt |
int |
- |
0.3.0 |
Changes
| Version |
Change |
| 0.3.0 |
Made public |
class: ShellRunStdOutput
class ShellRunStdOutput:
is_stdout: bool
content: str
| Field |
Type |
Default |
Since |
| is_stdout |
bool |
- |
0.3.0 |
| content |
str |
- |
0.3.0 |
Changes
| Version |
Change |
| 0.3.0 |
Made public |
class: ShellRunStdReadError
class ShellRunStdReadError:
is_stdout: bool
error: BaseException
| Field |
Type |
Default |
Since |
| is_stdout |
bool |
- |
0.3.0 |
| error |
BaseException |
- |
0.3.0 |
Changes
| Version |
Change |
| 0.3.0 |
Made public |
class: ShellRunStdStarted
class ShellRunStdStarted:
is_stdout: bool
console: Console
log_path: Path
| Field |
Type |
Default |
Since |
| is_stdout |
bool |
- |
0.3.0 |
| console |
Console |
- |
0.3.0 |
| log_path |
Path |
- |
0.3.0 |
Changes
| Version |
Change |
| 0.3.0 |
Made public |