deps

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureChrome

func EnsureChrome(ctx context.Context, out io.Writer) (string, error)

EnsureChrome returns a Chrome/Chromium path, installing Google Chrome on Windows when missing.

func EnsurePython

func EnsurePython(ctx context.Context, out io.Writer) (string, error)

EnsurePython returns a Python 3.10+ executable, installing it on Windows when missing.

func Status

func Status(out io.Writer, file scraper.Config)

Status prints readiness for Python, CloakBrowser, and Chrome.

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

type Result struct {
	PythonPath string
	CloakPath  string
	ChromePath string
}

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`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL