Skip to content

Commit 6766e94

Browse files
fix(cli): use consistent devforge-cli.git URL in dispatch install hint + prevent rich line-wrap breaking the URL
1 parent b9889c6 commit 6766e94

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/devforge/cli.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ def list_tools(
7676
)
7777

7878
console.print(table)
79-
console.print("\n[dim]Install individually:[/dim] [green]pip install devforge-tools[guard][/green]")
80-
console.print("[dim]Install all:[/dim] [green]pip install devforge-tools[all][/green]")
79+
console.print(
80+
"\n[dim]Install:[/dim] [green]pip install \"git+https://github.com/Coding-Dev-Tools/devforge-cli.git[all]\"[/green]"
81+
)
82+
console.print("[dim](devforge-tools is not on public PyPI — use the git+ form above.)[/dim]")
8183

8284

8385
@app.command()
@@ -96,7 +98,9 @@ def install(
9698
console.print(f"Available: {', '.join(TOOLS.keys())}, 'all'")
9799
raise typer.Exit(code=1)
98100

99-
pkg = f"devforge-tools[{extras}]"
101+
# devforge-tools is NOT published on public PyPI — install from GitHub source.
102+
repo_url = "https://github.com/Coding-Dev-Tools/devforge-cli.git"
103+
pkg = f"git+{repo_url}[{extras}]"
100104
console.print(f"[yellow]Installing {pkg}...[/yellow]")
101105
try:
102106
result = subprocess.run([sys.executable, "-m", "pip", "install", pkg], capture_output=True, text=True)
@@ -161,7 +165,8 @@ def dispatch(
161165
if not _is_tool_installed(module_name):
162166
console.print(
163167
f"[red]Tool '{tool_name}' is not installed.[/red]\n"
164-
f"Run: [green]pip install devforge-tools\\[{tool_name}][/green]"
168+
f"Run: [green]pip install \"git+https://github.com/Coding-Dev-Tools/devforge-cli.git\\[{tool_name}]\"[/green]",
169+
soft_wrap=True,
165170
)
166171
raise typer.Exit(code=1)
167172

0 commit comments

Comments
 (0)