Skip to content

Commit 99c2f64

Browse files
mihaliakadamwathan
authored andcommitted
secure option for link
1 parent f4c0c98 commit 99c2f64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/valet.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,14 @@
9393
/**
9494
* Register a symbolic link with Valet.
9595
*/
96-
$app->command('link [name]', function ($name) {
96+
$app->command('link [name] [--secure]', function ($name, $secure) {
9797
$linkPath = Site::link(getcwd(), $name = $name ?: basename(getcwd()));
9898

9999
info('A ['.$name.'] symbolic link has been created in ['.$linkPath.'].');
100+
101+
if ($secure) {
102+
$this->runCommand('secure '.$name);
103+
}
100104
})->descriptions('Link the current working directory to Valet');
101105

102106
/**

0 commit comments

Comments
 (0)