Skip to content

[NFR]: Extract the console core #15

Open

Description

@niden

Goal: move Crest\Console\* into its own package, phalcon/console, so that talon and other tools can share it.

Do not start before the trigger: a second real consumer wants it. For example, talon gets subcommands with real options, or the MVC flavor lands with a stable API. One consumer is not a package. An early extraction locks an unproven API across repositories.

Already in place

  • IsolationTest: nothing under Crest\Console names crest or refers to Crest\Project, Crest\ADR, Crest\Generator or Crest\Command.
  • Crest\Console\Parsing refers to nothing outside itself.
  • Crest's identity (NAME, KEY, PACKAGE) is in Crest\Commands.
  • One command listing: Kernel and ListCommand both use Registry::descriptions() and Output::commandTable().
  • Output::CREST renamed to Output::MARK.

When the trigger comes

  • Create phalcon/console. Move the files and rewrite the namespace.
  • Crest depends on phalcon/console.

Rule

phalcon/console must never depend on the framework. If Phalcon\Cli is rebuilt on it one day, the dependency must point from the framework to the package.

Activity

  1. added
    enhancement
    on Sep 25, 2026
  2. self-assigned this
    on Sep 25, 2026
  3. added theissue type on Sep 25, 2026
  4. moved this from Backlog to Active Sprint in Phalcon v5on Oct 17, 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

  • Status
    Active Sprint

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions