Angelo Package Scaffolding CLI for importing files and configurations
$ dotnet add package Angelo.ScaffoldInteractive scaffolding tool for Angelo.* packages.
Angelo.Scaffold provides a seamless way to scaffold files from Angelo packages into your project with smart merging capabilities, namespace adjustment, and an interactive terminal UI.
dotnet add package Angelo.Scaffold
Add a single line at the start of your Program.cs:
using Angelo.Scaffold.Extensions;
Scaffold.Enable();
var builder = WebApplication.CreateBuilder(args);
// ... rest of your code
When you run your app in Debug mode, a separate terminal window will open with the scaffolding interface.
Angelo Scaffold v1.0.0
╭──────────────────────────────────────────────────╮
│ Project MyWebApp │
│ Location C:\Projects\MyWebApp │
╰──────────────────────────────────────────────────╯
Select an action
> Scan for Angelo packages
Scaffold from package
View scaffold history
Re-scaffold (update)
Exit
Scaffold.Enable(config =>
{
config.DebugModeOnly = true; // Only run in debug mode (default: true)
config.CreateBackups = true; // Backup files before overwriting (default: true)
config.TerminalTitle = "My Scaffold"; // Custom terminal window title
});
var builder = WebApplication.CreateBuilder(args);
builder.UseAngeloScaffold();
// ... rest of your code
| File Type | Strategy | Behavior |
|---|---|---|
appsettings.json | JSON Merge | Deep merges keys, preserves existing values |
Program.cs | Roslyn Merge | Adds usings, services, and middleware at markers |
*DbContext.cs | DbContext Merge | Adds DbSets and OnModelCreating configurations |
| All other files | Copy | Copies with namespace adjustment for .cs files |
MIT