feat: new style and prompts - #31
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds an interactive ChangesInteractive Paymesh Project Initialization
Sequence Diagram(s)sequenceDiagram
participant User
participant InitCmd as "paymesh init"
participant Prompts as "clack prompts"
participant Generator as "generateClientCode / webhook generator"
participant FS as "filesystem (mkdir/write/.env)"
participant PkgMgr as "installDeps / pkg manager"
User->>InitCmd: run init (with options)
InitCmd->>Prompts: interactive prompts (install, PAYMESH_NAME, client path, DB, provider, webhook)
Prompts-->>InitCmd: user responses
InitCmd->>Generator: build client + webhook source
Generator-->>InitCmd: generated code
InitCmd->>FS: queue and write files (.ts, webhook, .env)
FS-->>InitCmd: files written
InitCmd->>PkgMgr: install scheduled deps (unless --skip-install)
PkgMgr-->>InitCmd: install result
InitCmd-->>User: completion message
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary by CodeRabbit
New Features
--yestogenerateto skip prompts and accept defaults.triggeraccepts event payload via stdin or--data.listenandstatusnow show CLI version and welcome banner.Documentation
--yes), listen default port, and trigger stdin/data usage.Chores
Tests