`prism-project-new
An interactive scaffolding wizard for creating new development projects. It automates the creation of project directories, applies boilerplate Nix templates, and sets up version control.
How it works
- Project Initialization: Asks the user for a project name and ensures the workspace directory exists (defaults to
~/Workspace). - Template Selection: Scans the local template library (
~/.local/share/prism/templates). It presents the available languages/frameworks to the user via agumselection menu. - Variable Injection: Copies the template's
flake.nixto the new project folder and usessedto replace placeholders (like{{PROJECT_NAME}}) with the user's chosen name. - Git Integration: Offers to initialize a Git repository and automatically creates a
.gitignorepre-configured for Nix (ignoring.direnv/andresult). - Environment Handoff: Opens the new
flake.nixin the system's$EDITORand provides instructions on how to enter the development shell.
Usage
prism-project-new
`