Skip to content

Commit

Permalink
Merge pull request #379 from codepuncher/fix-369
Browse files Browse the repository at this point in the history
secure option for link
  • Loading branch information
Adesin-fr authored Sep 19, 2022
2 parents 1ab360f + 6ebf7fb commit 8f03323
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,14 @@
/**
* Register a symbolic link with Valet.
*/
$app->command('link [name]', function ($name) {
$app->command('link [name] [--secure]', function ($name, $secure) {
$linkPath = Site::link(getcwd(), $name = $name ?: basename(getcwd()));

info('A [' . $name . '] symbolic link has been created in [' . $linkPath . '].');
info('A ['.$name.'] symbolic link has been created in ['.$linkPath.'].');

if ($secure) {
$this->runCommand('secure '.$name);
}
})->descriptions('Link the current working directory to Valet');

/**
Expand Down

0 comments on commit 8f03323

Please sign in to comment.