Update config
This commit is contained in:
@@ -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' \
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user