Skip to content

Add noot init command with interactive project scaffolding#7

Merged
ab-10 merged 4 commits intomainfrom
feature/init_command
Jan 24, 2026
Merged

Add noot init command with interactive project scaffolding#7
ab-10 merged 4 commits intomainfrom
feature/init_command

Conversation

@recursiveAF
Copy link
Contributor

Summary

  • Add noot init CLI command with interactive rich prompt for project name
  • Support --name flag for non-interactive usage (CI/testing)
  • Scaffold new project structure: src/{name}/, cli/{name}.py, tests/test_{name}.py
  • Add templates for pyproject.toml, sample CLI, and test file with {{project_name}} substitution
  • Update cassette system to use .cassettes/{cli,http}/ at project root with auto-generated datetime filenames

Test plan

  • uv run pytest tests/test_init_command.py -v passes (3 tests)
  • Manual test: noot init in empty directory prompts for name and creates structure
  • Manual test: noot init --name myproj creates project without prompting

🤖 Generated with Claude Code

recursiveAF and others added 4 commits January 24, 2026 10:03
Move default directories for LLM response caching and API recordings
from cwd-relative paths to project-root-relative paths under .cassettes/.
Add get_project_root() to find project root via marker files (.git,
pyproject.toml, etc.) so recordings work from subdirectories.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add CLI with argparse subcommands and rich interactive prompt
- Create project scaffolding: src/{name}/, cli/{name}.py, tests/
- Add templates for pyproject.toml, CLI, and test files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ab-10 ab-10 merged commit fcfc198 into main Jan 24, 2026
2 checks passed
@ab-10 ab-10 deleted the feature/init_command branch January 24, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants