Skip to main content

Module shared

Module shared 

Source
Expand description

Helpers shared by every run_* command handler.

Most of these used to live in main.rs. They were lifted here so the per-command modules (and, eventually, the daemon worker) can share the same KV parsing, formatting, manifest decompression, and login glue.

Statics§

INTERACTIVE
Set once in main: true iff the user did not pass --non-interactive and stdin is a TTY. Read via is_interactive.

Functions§

connect_and_login
decompress_manifest
detect_steam_user
Try to detect the active Steam user and find a saved refresh token.
drive_credentials_flow
drive_qr_flow
fetch_app_kv
Look up an app’s KV data via PICS using an already-authenticated client.
fetch_manifest
find_first_depot
find_manifest_for_depot
fmt_relative
fmt_size
fmt_timestamp
forget_saved_token
guard_prompt
init_interactive
Initialize the interactive flag. Safe to call once from main.
is_interactive
kv_to_json
load_saved_token
log_filter
Build the tracing filter layer. When RUST_LOG is set it is honored verbatim; otherwise logging is restricted to the first-party crates at level and every other crate (h2, hyper, reqwest, tokio, …) is silenced. The default branch is a typed Targets filter rather than a parsed directive string. Boxed so both branches share one type at the call site.
parse_app_kv
parse_package_kv
preferred_kind
resolve_depot_key
save_token
tokens_path