feat: add reeln init command for guided first-time setup#27
Merged
Conversation
Interactive wizard using questionary prompts: - Sport selection with segment info preview - Source directory (where OBS saves replays) - Output directory (where game folders are created) - Directory creation when paths don't exist - Rich summary panel with next steps Non-interactive mode: reeln init --sport hockey --source-dir ~/replays --output-dir ~/games Calls reeln-core's init module for config building and save_config for atomic write. 11 tests covering all code paths. Co-Authored-By: Claude <noreply@anthropic.com>
shutil.which("uv") fails in GUI apps that don't inherit shell PATH.
New _find_uv() checks ~/.local/bin, ~/.cargo/bin, /opt/homebrew/bin,
/usr/local/bin before falling back to pip. Used by both install and
uninstall detectors.
Fixes: "No module named pip" when reeln is installed via uv tool
install and plugins are installed from the dock.
Co-Authored-By: Claude <noreply@anthropic.com>
Remove unused imports (json, config_to_dict, patch), use X | None instead of Optional[X], remove unused noqa directive. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
_find_uv() now returns the full path (e.g., "/usr/bin/uv") instead of
bare "uv". Tests updated to check endswith("uv") and mock _find_uv
instead of shutil.which for the "not found" cases.
Co-Authored-By: Claude <noreply@anthropic.com>
Interactive prompt functions require a real TTY and can't be tested in CI. Added pragma: no cover to _require_questionary, _prompt_sport, _prompt_path, _prompt_overwrite, and the interactive overwrite branch. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reeln init --sport hockey --source-dir ~/replays --output-dir ~/gamesTest plan
reeln initinteractive flowreeln init --sport hockey --source-dir /tmp/src --output-dir /tmp/out --force🤖 Generated with Claude Code