mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-10 18:07:07 +01:00
pick and pick-manual no longer uninstall games that are already allowed: the outgoing assignment is kept as a released pick (installed, no lock) until 'pick --replace', done/check, or abandon-pick. The allowed set is capped at max_manual_picks + 1; a pick over it is refused before the candidate list / confirmation, naming the games. status and the web Picks card list kept games with an Abandon button. Fast install now tracks the installer log from the spawn offset: web jobs drive the progress bar (per-depot %, phase) and echo a line every 30 s; daemon-started runs are exposed via ctl status / /api/daemon and shown on the Dashboard. Also: web deps bumped for dependency freshness (react-query 5.104.5, typescript-eslint 8.72.0, vite 8.3.5, node 24.22.1 in CI). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CUaX4zAa6H4sMu3jd6RFdb
51 lines
2.3 KiB
Python
51 lines
2.3 KiB
Python
"""One-line descriptions of every CLI command, in help order.
|
|
|
|
The CLI's usage text and the web command catalog (``GET /api/commands``)
|
|
both read these. They live outside ``main`` so the catalog, which the web
|
|
server loads from inside ``main`` (``main`` → ``misc`` → ``_web_server``),
|
|
can import them at the top without a cycle.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Final
|
|
|
|
from steam_backlog_enforcer._allowed_games import MANUAL_LOCK_DAYS
|
|
|
|
# Commands dispatched through ``main.COMMANDS`` (handler takes config, state).
|
|
COMMAND_DESCRIPTIONS: Final[dict[str, str]] = {
|
|
"scan": "Scan library & assign a game",
|
|
"check": "Check assigned game for a new achievement",
|
|
"status": "Show current status",
|
|
"list": "List games from snapshot",
|
|
"install": "Install an allowed game (fast installer first)",
|
|
"hide": "Hide all non-assigned games in library",
|
|
"unhide": "Unhide all games in library",
|
|
"buy-dlc": "Unblock the store for 15 min to buy a game/DLC",
|
|
"reset": "Reset all state",
|
|
"installed": "List installed games",
|
|
"uninstall": "Uninstall all non-assigned games",
|
|
"setup": "Run first-time setup",
|
|
"done": "Move on after a new achievement, pick next",
|
|
"pick": "Pick another game from candidates (keeps current; --replace swaps)",
|
|
"stats": "Show backlog completion-time estimates",
|
|
"gaming-status": "Show today's gaming time and block state",
|
|
"gaming-reset": "Reset today's gaming counter (root + phrase)",
|
|
}
|
|
|
|
# Commands with non-standard arg handling (shown in help but not in COMMANDS).
|
|
EXTRA_COMMAND_DESCRIPTIONS: Final[dict[str, str]] = {
|
|
"add-exception": "Whitelist a game immediately (phrase + --reason)",
|
|
"unblock": "Unblock the store for [minutes] (default 15, max 30)",
|
|
"serve": "Start the web UI (--port N; replaces a stale server)",
|
|
"pick-manual": f"Pick a game by app_id, lock enforcer for {MANUAL_LOCK_DAYS} days",
|
|
"abandon-pick": "Undo a manual pick at any time (needs app_id)",
|
|
"block-gaming": "Block ALL gaming for <days> days, no in-app undo",
|
|
"enforce": "Run enforcer: block, uninstall, kill, hide (--demo for a 60s budget)",
|
|
"gaming-unblock": "Force-release playtime bind mounts (root; recovery hatch)",
|
|
}
|
|
|
|
ALL_COMMAND_DESCRIPTIONS: Final[dict[str, str]] = (
|
|
COMMAND_DESCRIPTIONS | EXTRA_COMMAND_DESCRIPTIONS
|
|
)
|