Skip to content

[NFR]: Commands know the flavor of the project #44

Closed

Description

@niden

Each project command declares the flavors that it supports. A command for a different flavor stops with a clear error, and crest list shows only the commands of the flavor of the project.

Today each command runs in each flavor. make:responder in an MVC project fails with unknown path 'responder': the message names a config key, not the real problem.

Scope

  • Each command declares its flavors. A command that declares none runs in all flavors (about, config:show, serve, ...).
  • A command for a different flavor stops before it does work, with a message that names the flavor.
  • In a project, crest list shows only the commands of its flavor.
  • The console core does not know the flavor.
  • A command that has no MVC version yet is ADR only: make:action, make:command, make:middleware, make:provider, make:responder, route:list, container:list, event:list.

Open

  • Where the declaration is: on the command, or in the command set.

Done when

In an MVC project, crest list shows no ADR commands, and crest make:responder Foo stops with a message that names the flavor. ADR projects do not change.

Part of #11.

Activity

  1. added
    enhancement
    on Oct 13, 2026
  2. self-assigned this
    on Oct 13, 2026
  3. added theissue type on Oct 13, 2026
  4. niden commented on Oct 13, 2026

    @niden
    SponsorMemberAuthor

    Resolved in #57

  5. moved this from Backlog to Implemented in Phalcon v5on Oct 13, 2026
  6. moved this from Implemented to Released in Phalcon v5on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions