Native-image entry point for spel.
Provides a CLI tool (spel) for browser automation with persistent browser sessions.
Modes:
Usage: spel open https://example.org # Navigate (auto-starts browser) spel snapshot # ARIA snapshot with refs spel click @ref # Click by ref spel fill @ref "search text" # Fill input by ref spel screenshot shot.png # Take screenshot spel close # Close browser spel eval-sci '(+ 1 2)' # Evaluate and exit spel install # Install Playwright browsers spel --help # Show help
Native-image entry point for spel. Provides a CLI tool (spel) for browser automation with persistent browser sessions. Modes: - CLI commands (default): Send commands to the browser process - Eval: Evaluate a Clojure expression and exit Usage: spel open https://example.org # Navigate (auto-starts browser) spel snapshot # ARIA snapshot with refs spel click @ref # Click by ref spel fill @ref "search text" # Fill input by ref spel screenshot shot.png # Take screenshot spel close # Close browser spel eval-sci '(+ 1 2)' # Evaluate and exit spel install # Install Playwright browsers spel --help # Show help
(-main & raw-args)Main entry point for the native-image binary.
Dispatches to the appropriate mode based on the first argument:
Global flags (--timeout, --debug, --json) are parsed first and apply across all modes. For eval-sci mode, --timeout sets Playwright's default action timeout. For CLI mode, flags pass through to cli.clj.
Main entry point for the native-image binary. Dispatches to the appropriate mode based on the first argument: - 'eval-sci' → evaluate expression and exit - 'install' → install Playwright browsers - 'version' → print version - '--help' → print help - anything else → CLI command Global flags (--timeout, --debug, --json) are parsed first and apply across all modes. For eval-sci mode, --timeout sets Playwright's default action timeout. For CLI mode, flags pass through to cli.clj.
(handle-upgrade! args)Implements spel upgrade [--check]. Prints the current version and the
latest GitHub release version. With --check, exits without making
changes. Without --check, tells the user which command to run to
upgrade based on the detected install method (brew/cargo/manual). A fully
automatic in-place overwrite is intentionally out of scope — replacing a
running native binary safely across macOS/Linux/Windows deserves its own
hardening pass.
Implements `spel upgrade [--check]`. Prints the current version and the latest GitHub release version. With `--check`, exits without making changes. Without `--check`, tells the user which command to run to upgrade based on the detected install method (brew/cargo/manual). A fully automatic in-place overwrite is intentionally out of scope — replacing a running native binary safely across macOS/Linux/Windows deserves its own hardening pass.
(normalize-args args)Normalizes all CLI arguments by replacing typographic dashes.
See normalize-arg for details.
Normalizes all CLI arguments by replacing typographic dashes. See `normalize-arg` for details.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |