Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureChrome ¶
EnsureChrome returns a Chrome/Chromium path, installing Google Chrome on Windows when missing.
func EnsurePython ¶
EnsurePython returns a Python 3.10+ executable, installing it on Windows when missing.
Types ¶
type Options ¶
type Options struct {
Python bool // ensure Python 3.10+ (auto-install on Windows via winget)
Cloak bool // pip install cloakbrowser + download Chromium binary
Chrome bool // ensure a Chromium-based browser fallback
SaveConfig bool // write scraper.engine + binary_path to config.json
}
Options controls which dependencies Install ensures. All installers and CLI commands should call Install with the same defaults rather than duplicating pip/winget logic in shell scripts.
func DefaultInstallOptions ¶
func DefaultInstallOptions() Options
DefaultInstallOptions is what install.ps1, install.sh, setup, and scraper install use.
type Result ¶
Result summarizes what was found or installed.
func Install ¶
func Install(ctx context.Context, paths config.Paths, store *storage.Store, out io.Writer, opts Options) (Result, error)
Install is the single entry point for system dependencies (Python, CloakBrowser, Chrome). Shell installers only download the jobforge binary and invoke `jobforge deps install`.