Conversation
…pository management
…modules and updating imports
… with subprocess for session handling
- Introduced `_alphanumeric_name` to sanitize repo names for tmux session names. - Added `_make_session_name` to generate unique session names using a coolname slug. - Implemented `list_repo_sessions` to retrieve existing tmux sessions for a repo. - Created `create_tmux_session` to handle session creation with uniqueness checks. - Added `kill_tmux_session` to facilitate session termination. - Updated `open_in_tmux` to utilize the new session creation logic. test(tui): add comprehensive tests for TUI components - Created `test_tui.py` with tests for various TUI screens and components. - Added tests for `GitDirectorConsole`, `ConfirmScreen`, `ActionMenuScreen`, and `RemoveSessionScreen`. - Included tests for session management interactions and UI behavior. chore(deps): update dependencies in lock file - Added `coolname` package for generating unique session names. - Updated `pytest-asyncio` to support both Python 3.9 and 3.10+. - Included `backports-asyncio-runner` for compatibility with Python versions < 3.10.
…rocess interactions
…ux session handling
…d update dependencies - Updated test class names and methods in `test_cli.py` to reflect changes from add/remove commands to link/unlink commands. - Adjusted mock manager patches and assertions accordingly. - Modified `test_extras.py` to remove unnecessary imports and streamline code. - Updated `uv.lock` to upgrade `click` to version 8.3.2, `gitdirector` to version 1.1.0, and `ruff` to version 0.15.9, along with other dependency updates.
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.
This pull request introduces a major new release (v1.1.0) of
gitdirectorwith significant enhancements to both the command-line interface and underlying functionality. The most notable changes are the addition of new commands (link,unlink,cd,autoclean), a more interactive and user-friendly CLI experience (with rich tables, live progress, and colorized output), and improved dependency management. The documentation (README.md) and configuration have also been updated to reflect these changes.Major new features and commands:
link/unlink(replaceadd/remove),cd(open/switch to a tmux session for a repository), andautoclean(clean up broken links or stale tmux sessions). All commands now provide improved feedback and error handling. [1] [2] [3] [4]listandpullcommands with live updating, parallel execution, and rich table output, making it easier to track progress and view results. [1] [2] [3]Documentation and configuration updates:
README.mdto document the new commands, improved usage instructions, and added requirements fortmuxfor session management. [1] [2] [3]1.1.0and added new dependencies (libtmux,textual,coolname) to support the new features. [1] [2]Developer and testing improvements:
pytest-asyncioas a dev dependency and enabledasyncio_modein pytest configuration for better test support. [1] [2]Internal refactoring and UI improvements:
These changes make
gitdirectorsignificantly more powerful and user-friendly, especially for users managing many repositories or working with tmux-based workflows.