You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ This serves two purposes:
54
54
-**Breaking:** The custom navigation item configuration now uses array inputs instead of the previous format. For more information, see the upgrade guide below.
55
55
-**Breaking:** Renamed the `hyde.navigation.subdirectories` configuration option to `hyde.navigation.subdirectory_display`.
56
56
-**Breaking:** Renamed the `hyde.enable_cache_busting` configuration option to `hyde.cache_busting` in https://github.com/hydephp/develop/pull/1980
57
+
- Renamed the parameter `category` to `group` in the `publish:views` command in https://github.com/hydephp/develop/pull/2142
57
58
- Dependency: Upgraded from Laravel 10 to Laravel 11
58
59
- Dependency: Updated minimum PHP requirement to 8.2
Copy file name to clipboardExpand all lines: packages/framework/src/Console/Commands/PublishViewsCommand.php
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@
25
25
class PublishViewsCommand extends Command
26
26
{
27
27
/** @var string */
28
-
protected$signature = 'publish:views {category? : The category to publish}';
28
+
protected$signature = 'publish:views {group? : The group to publish}';
29
29
30
30
/** @var string */
31
31
protected$description = 'Publish the Hyde components for customization. Note that existing files will be overwritten';
@@ -40,10 +40,10 @@ public function handle(): int
40
40
ViewPublishGroup::fromGroup('hyde-components', 'Blade Components', 'More or less self contained components, extracted for customizability and DRY code'),
->expectsQuestion('Which group do you want to publish?', 'all')
34
+
->doesntExpectOutputToContain('Selected group')
35
35
->expectsOutput("Published all $count files to [resources/views/vendor/hyde]")
36
36
->assertExitCode(0);
37
37
@@ -76,7 +76,7 @@ public function testCanSelectGroupWithQuestion()
76
76
ConsoleHelper::disableLaravelPrompts();
77
77
78
78
$this->artisan('publish:views')
79
-
->expectsQuestion('Which category do you want to publish?', '<comment>layouts</comment>: Shared layout views, such as the app layout, navigation menu, and Markdown page templates')
79
+
->expectsQuestion('Which group do you want to publish?', '<comment>layouts</comment>: Shared layout views, such as the app layout, navigation menu, and Markdown page templates')
80
80
->expectsOutput('Published all [layout] files to [resources/views/vendor/hyde/layouts]')
81
81
->assertExitCode(0);
82
82
@@ -213,8 +213,8 @@ public function testCanSelectGroupWithQuestionAndPrompts()
213
213
}
214
214
215
215
$this->artisan('publish:views')
216
-
->expectsQuestion('Which category do you want to publish?', '<comment>layouts</comment>: Shared layout views, such as the app layout, navigation menu, and Markdown page templates')
217
-
->expectsOutput('Selected category [layouts]')
216
+
->expectsQuestion('Which group do you want to publish?', '<comment>layouts</comment>: Shared layout views, such as the app layout, navigation menu, and Markdown page templates')
217
+
->expectsOutput('Selected group [layouts]')
218
218
->expectsQuestion('Select the files you want to publish', [(is_dir(Hyde::path('packages')) ? 'packages' : 'vendor/hyde').'/framework/resources/views/layouts/app.blade.php'])
219
219
->expectsOutput('Published selected file to [resources/views/vendor/hyde/layouts/app.blade.php]')
220
220
->assertExitCode(0);
@@ -229,7 +229,7 @@ public function testCanSelectGroupWithQuestionAndPrompts()
0 commit comments