Skip to main content

Module shell

Module shell 

Source

Structs§

FetchedPage
Stripped-down response used by the shell. We avoid re-exporting the full impersonate::Response so tests don’t need to construct one.
ImpersonateFetcher
Wraps the project’s stealth HTTP client. stealth = true is the flag from crawlex shell --stealth; this implementation uses the same ImpersonateClient for both so the flag is currently a wiring placeholder (slice 22 acceptance only requires the flag exists).
ShellOptions
ShellState
In-memory state held by one shell session.

Enums§

ShellOutput
What a single command produced. The interactive loop projects this into stdout; tests assert on the variant directly.

Traits§

Fetcher
Network-facing seam — abstracted so unit tests inject canned HTML.

Functions§

dispatch
Parse + execute one input line against state. Public so the integration test in this module can drive the dispatcher without touching stdin.
read_history
Public so crawlex shell --history-file path callers can read the stored history. The format is one verbatim line per entry.
run_interactive