fix: update 'cwd' to 'working_dir' in run specifications for consistency

This commit is contained in:
2026-02-21 01:34:56 -08:00
parent bb367ab632
commit bb9fbd8ca4
7 changed files with 18 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ def _get_project_dir(config: CastleConfig, project_name: str) -> Path:
if project_name not in config.components:
raise ValueError(f"Unknown component: {project_name}")
manifest = config.components[project_name]
cwd = manifest.run.cwd if manifest.run else None
cwd = manifest.run.working_dir if manifest.run else None
working_dir = cwd or project_name
return config.root / working_dir
@@ -59,7 +59,7 @@ def run_test(args: argparse.Namespace) -> int:
# Run all
all_passed = True
for name, manifest in config.components.items():
cwd = manifest.run.cwd if manifest.run else None
cwd = manifest.run.working_dir if manifest.run else None
working_dir = cwd or name
project_dir = config.root / working_dir
tests_dir = project_dir / "tests"
@@ -98,7 +98,7 @@ def run_lint(args: argparse.Namespace) -> int:
# Run all
all_passed = True
for name, manifest in config.components.items():
cwd = manifest.run.cwd if manifest.run else None
cwd = manifest.run.working_dir if manifest.run else None
working_dir = cwd or name
project_dir = config.root / working_dir
if not _has_pyproject(project_dir):