Skip to content

Commit

Permalink
Fix rprint bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Sep 13, 2024
1 parent cb44ab6 commit 7102760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion comfy_cli/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def env():
_env_checker = EnvChecker()
table = _env_checker.fill_print_table()
workspace_manager.fill_print_table(table)
console.rprint(table)
console.print(table)


@app.command(hidden=True)
Expand Down
8 changes: 3 additions & 5 deletions comfy_cli/command/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def checkout_stable_comfyui(version: str, repo_dir: str):
sys.exit(1)

tag = str(selected_release["tag"])
console.rprint(
console.print(
Panel(
f"🔍 Checking out ComfyUI version: [bold cyan]{selected_release['tag']}[/bold cyan]",
title="[yellow]ComfyUI Checkout[/yellow]",
Expand All @@ -369,15 +369,13 @@ def checkout_stable_comfyui(version: str, repo_dir: str):
)
)

# Simulate the git checkout process
with console.status("[bold green]Checking out tag...", spinner="dots"):
success = git_checkout_tag(repo_dir, tag)
if not success:
console.rprint("\n❌ [bold red]Failed to checkout tag![/bold red]")
console.print("\n❌ [bold red]Failed to checkout tag![/bold red]")
sys.exit(1)

# Print success message
console.rprint("\n✅ [bold green]Successfully checked out tag![/bold green]")
console.print("\n✅ [bold green]Successfully checked out tag![/bold green]")


def get_latest_release(repo_owner: str, repo_name: str) -> Optional[GithubRelease]:
Expand Down

0 comments on commit 7102760

Please sign in to comment.