Skip to content

Conversation

@innocenzi
Copy link
Member

This PR updates ConsoleApplication::boot and ConsoleConfig to add options to prevent the built-in console commands from being loaded, which is useful in a context where we are building an external CLI application on top of temnpest/console.

The loading prevention is done through DiscoveryLocation, which already had support for detecting if the class came from Tempest directly (by checking the namespace).

The console command discovery uses the new option in ConsoleConfig and this heuristic to determine whether to load a specific command.

This may cause issues if we ever build an external but first-party console application which namespace starts with Tempest, so we might need to update how this work later. However, for now I think it is good enough.

@brendt brendt merged commit 4ef5a77 into 3.x Jan 21, 2026
74 checks passed
@brendt
Copy link
Member

brendt commented Jan 21, 2026

Looks good :)

@brendt brendt deleted the feat/hide-built-in-commands branch January 21, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants