feat(cli): port tier 1 commands to LuCLI module#2092
Merged
Conversation
…estroy command - Parse --force before positional args to avoid misreading it as the type argument - Remove prompt() call (doesn't exist); require --force for non-interactive confirmation - Add previewDestroy() validation for view paths, matching destroyView() behaviour
Adds Stats.cfc service with getStats() and getNotes() for scanning project directories, plus stats()/notes() dispatch functions and sprintf() private helper in Module.cfc. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds Admin.cfc service, 6 admin templates, and Module.cfc dispatch for `wheels generate admin <ModelName>` — introspects a running server to generate scoped controller + CRUD views + route injection.
- dbReset: propagate migration errors instead of always reporting success
- MCP schema: add "admin" to wheels_generate type enum and description
- admin _form: use correct route/method/key for edit vs create forms
- admin index: use {{primaryKey}} instead of hardcoded .id for links
- Admin.cfc: remove unused templateService dependency
…ment route injection limitation
bdf5ef2 to
28133ad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports 8 high-value CLI commands from the CommandBox-based CLI to the LuCLI module, closing the primary feature gap for developers using the
wheelsbinary.New commands
wheels destroy <name> [type]— Remove generated components (model, controller, views, tests) with route cleanup and migration generationwheels doctor [--verbose]— Run 7 health checks on app structure, config, permissions, DB, and testswheels stats [--verbose]— Code statistics (files, LOC, comments, blanks) across all project directorieswheels notes [--annotations=...] [--custom=...]— Extract TODO/FIXME/OPTIMIZE annotations from codebasewheels db reset|status|version— Database management (migrate+seed, migration status, schema version)wheels upgrade check [--to=<version>]— Scan app for breaking changes before upgradingwheels generate admin <model>— Generate admin CRUD interface via model introspectionArchitecture
Destroy.cfc,Doctor.cfc,Stats.cfc,Admin.cfcincli/lucli/services/introspectcommand in CLI bridge for model metadataOffline vs Server-dependent
Test plan
wheels destroy— scaffold a resource, destroy it with--force, verify files removed and migration generatedwheels doctor— run in a valid project, check output shows HEALTHY; remove a required dir, check CRITICALwheels stats— verify table output with correct categories and line countswheels notes— add a// TODO: testcomment, verify it appears in outputwheels db status— with running server, verify migration table outputwheels db reset --force— verify migrations run and seeds executewheels upgrade check— verify breaking changes scan runs against current versionwheels generate admin User— with running server, verify controller + views + route generatedwheels mcplists new tools🤖 Generated with Claude Code