Skip to content

Commit 4e98cf6

Browse files
authored
fix(commands): register chassis commands for cypress artisan (#6)
1 parent 7ec9044 commit 4e98cf6

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
66

77
## [Unreleased]
88

9+
## [v1.0.0-rc.3] - 2026-04-27
10+
11+
### Fixed
12+
13+
- Registered chassis commands during Cypress's HTTP artisan bridge so snapshot commands like `db:snapshot:create` are available outside normal CLI boot.
14+
915
## [v1.0.0-rc.2] - 2026-04-27
1016

1117
### Fixed
@@ -17,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
1723

1824
Initial extraction of the [Northwestern Laravel Starter](https://laravel-starter.entapp.northwestern.edu/)'s framework utilities into a standalone Composer package.
1925

20-
[Unreleased]: https://github.com/NIT-Administrative-Systems/chassis/compare/v1.0.0-rc.2...HEAD
26+
[Unreleased]: https://github.com/NIT-Administrative-Systems/chassis/compare/v1.0.0-rc.3...HEAD
27+
[v1.0.0-rc.3]: https://github.com/NIT-Administrative-Systems/chassis/compare/v1.0.0-rc.2...v1.0.0-rc.3
2128
[v1.0.0-rc.2]: https://github.com/NIT-Administrative-Systems/chassis/compare/v1.0.0-rc.1...v1.0.0-rc.2
2229
[v1.0.0-rc.1]: https://github.com/NIT-Administrative-Systems/chassis/releases/tag/v1.0.0-rc.1

src/ChassisServiceProvider.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@ public function bootingPackage(): void
5151
{
5252
Blade::directive('datetime', resolve(DateTimeFormatter::class)->buildDatetimeDirective());
5353

54-
if ($this->app->runningInConsole()) {
55-
$this->commands([
56-
MigrateToChassisCommand::class,
57-
WakeDatabaseCommand::class,
58-
RestoreLocalEnvironmentFilesCommand::class,
59-
]);
60-
$this->registerCommandsSelectively();
61-
$this->registerSnapshotCommands();
62-
}
54+
$this->commands([
55+
MigrateToChassisCommand::class,
56+
WakeDatabaseCommand::class,
57+
RestoreLocalEnvironmentFilesCommand::class,
58+
]);
59+
$this->registerCommandsSelectively();
60+
$this->registerSnapshotCommands();
6361
}
6462

6563
/**

0 commit comments

Comments
 (0)