Skip to content

Commit

Permalink
Use the new castor open function
Browse files Browse the repository at this point in the history
  • Loading branch information
JorickPepin committed Mar 9, 2024
1 parent 10953cf commit 7f8fb02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .castor/docker.php
Expand Up @@ -17,6 +17,7 @@
use function Castor\fs;
use function Castor\io;
use function Castor\log;
use function Castor\open;
use function Castor\run;
use function Castor\variable;

Expand Down Expand Up @@ -53,10 +54,10 @@ function about(): void
io()->listing(array_map(fn ($url) => "https://{$url}", $urls));
}

#[AsTask(description: 'Opens the project in your browser', namespace: '')]
function open(): void
#[AsTask(description: 'Opens the project in your browser', namespace: '', aliases: ['open'])]
function open_project(): void
{
run(['open', 'https://' . variable('root_domain')], quiet: true);
open('https://' . variable('root_domain'));
}

#[AsTask(description: 'Builds the infrastructure', aliases: ['build'])]
Expand Down

0 comments on commit 7f8fb02

Please sign in to comment.