Skip to content

Commit 5659c86

Browse files
committed
Consistency tweaks
1 parent d8bf98a commit 5659c86

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

src/specify_cli/__init__.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -818,12 +818,21 @@ def init(
818818
console.print(f"[red]Error:[/red] Directory '{project_name}' already exists")
819819
raise typer.Exit(1)
820820

821-
console.print(Panel.fit(
822-
"[cyan]Specify Project Setup[/cyan]\n"
823-
f"{'Initializing in current directory:' if here else 'Creating new project:'} [green]{project_path.name}[/green]"
824-
+ (f"\n[dim]Path: {project_path}[/dim]" if here else ""),
825-
border_style="cyan"
826-
))
821+
# Create formatted setup info with column alignment
822+
current_dir = Path.cwd()
823+
824+
setup_lines = [
825+
"[cyan]Specify Project Setup[/cyan]",
826+
"",
827+
f"{'Project':<15} [green]{project_path.name}[/green]",
828+
f"{'Working Path':<15} [dim]{current_dir}[/dim]",
829+
]
830+
831+
# Add target path only if different from working dir
832+
if not here:
833+
setup_lines.append(f"{'Target Path':<15} [dim]{project_path}[/dim]")
834+
835+
console.print(Panel("\n".join(setup_lines), border_style="cyan", padding=(1, 2)))
827836

828837
# Check git only if we might need it (not --no-git)
829838
# Only set to True if the user wants it and the tool is available

0 commit comments

Comments
 (0)