Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "uv_build"

[project]
name = "gitdirector"
version = "1.1.3"
version = "1.2.0"
description = "A terminal based control plane for developers working across multiple repositories. Launch multiple AI coding agents, multiple tmux sessions and track changes across all your repos in one place."
readme = "README.md"
license = { text = "MIT" }
Expand Down Expand Up @@ -37,7 +37,7 @@ dependencies = [
"rich>=12.0",
"libtmux>=0.46.2",
"textual>=8.2.1",
"coolname>=3.0.0",
"faker>=37.12.0",
]

[project.optional-dependencies]
Expand Down
18 changes: 16 additions & 2 deletions src/gitdirector/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from importlib.metadata import version
from typing import Optional

from rich import box
Expand All @@ -8,7 +7,22 @@

from ..repo import RepoStatus

__version__ = version("gitdirector")

def _get_version() -> str:
from importlib.metadata import version

return version("gitdirector")


__version__: Optional[str] = None


def get_version() -> str:
global __version__
if __version__ is None:
__version__ = _get_version()
return __version__


console = Console(highlight=False)

Expand Down
3 changes: 1 addition & 2 deletions src/gitdirector/commands/autoclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def _autoclean_links():
console.print()
return

for p in broken:
config.remove_repository(p)
config.remove_repositories(broken)

console.print()
console.print(f" [green]Removed {len(broken)} broken link(s).[/green]")
Expand Down
4 changes: 2 additions & 2 deletions src/gitdirector/commands/help.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import click
from rich.table import Table

from . import __version__, console
from . import get_version, console


def show_help():
console.print()
console.print(
f" [bold white]GITDIRECTOR[/bold white] "
f"[dim]v{__version__} - Manage multiple git repositories[/dim]\n"
f"[dim]v{get_version()} - Manage multiple git repositories[/dim]\n"
)

console.print(" [dim]Commands[/dim]\n")
Expand Down
Loading