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-interactiveand stdin is a TTY. Read viais_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_LOGis set it is honored verbatim; otherwise logging is restricted to the first-party crates atleveland every other crate (h2, hyper, reqwest, tokio, …) is silenced. The default branch is a typedTargetsfilter 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