Skip to content

Commit 56cc43f

Browse files
committed
feat: allow specifying version to symlink to
1 parent f69842f commit 56cc43f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Web/Documentation/SymlinkDocumentationCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ public function __construct(
1818
) {}
1919

2020
#[ConsoleCommand('docs:symlink')]
21-
public function __invoke(string $path = '../tempest-framework'): ExitCode
21+
public function __invoke(string $path = '../tempest-framework', ?Version $version = null): ExitCode
2222
{
23+
$version ??= Version::default();
2324
$from = root_path($path, '/docs');
24-
$to = root_path('src/Web/Documentation/content/', Version::default()->getUrlSegment());
25+
$to = root_path('src/Web/Documentation/content/', $version->getUrlSegment());
2526

2627
$this->console->header('Symlinking documentation');
2728

0 commit comments

Comments
 (0)