Update config

This commit is contained in:
Den Delimarsky 🌺
2025-09-12 13:15:41 -07:00
parent af3cf934e5
commit c29e419b4f
2 changed files with 8 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ source "$SCRIPT_DIR/common.sh"
eval $(get_feature_paths) eval $(get_feature_paths)
check_feature_branch "$CURRENT_BRANCH" || exit 1 check_feature_branch "$CURRENT_BRANCH" || exit 1
mkdir -p "$FEATURE_DIR" mkdir -p "$FEATURE_DIR"
TEMPLATE="$REPO_ROOT/templates/plan-template.md" TEMPLATE="$REPO_ROOT/.specify/templates/plan-template.md"
[[ -f "$TEMPLATE" ]] && cp "$TEMPLATE" "$IMPL_PLAN" [[ -f "$TEMPLATE" ]] && cp "$TEMPLATE" "$IMPL_PLAN"
if $JSON_MODE; then if $JSON_MODE; then
printf '{"FEATURE_SPEC":"%s","IMPL_PLAN":"%s","SPECS_DIR":"%s","BRANCH":"%s"}\n' \ printf '{"FEATURE_SPEC":"%s","IMPL_PLAN":"%s","SPECS_DIR":"%s","BRANCH":"%s"}\n' \

View File

@@ -894,12 +894,14 @@ def init(
tracker.error("final", str(e)) tracker.error("final", str(e))
console.print(Panel(f"Initialization failed: {e}", title="Failure", border_style="red")) console.print(Panel(f"Initialization failed: {e}", title="Failure", border_style="red"))
if debug: if debug:
env_info = [ _env_pairs = [
f"Python: {sys.version.split()[0]}", ("Python", sys.version.split()[0]),
f"Platform: {sys.platform}", ("Platform", sys.platform),
f"CWD: {Path.cwd()}", ("CWD", str(Path.cwd())),
] ]
console.print(Panel("\n".join(env_info), title="Debug Environment", border_style="magenta")) _label_width = max(len(k) for k, _ in _env_pairs)
env_lines = [f"{k.ljust(_label_width)} → [bright_black]{v}[/bright_black]" for k, v in _env_pairs]
console.print(Panel("\n".join(env_lines), title="Debug Environment", border_style="magenta"))
if not here and project_path.exists(): if not here and project_path.exists():
shutil.rmtree(project_path) shutil.rmtree(project_path)
raise typer.Exit(1) raise typer.Exit(1)