Skip to content

Commit

Permalink
Merge pull request #1089 from hotmeteor/latest-command
Browse files Browse the repository at this point in the history
Add alias for on-latest-version
  • Loading branch information
mattstauffer committed Oct 13, 2021
2 parents e06f047 + ec5eaeb commit a9ae715
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
}

DnsMasq::updateTld(
$oldTld = Configuration::read()['tld'], $tld = trim($tld, '.')
$oldTld = Configuration::read()['tld'],
$tld = trim($tld, '.')
);

Configuration::updateKey('tld', $tld);
Expand Down Expand Up @@ -117,7 +118,6 @@
Nginx::restart();

info('Your valet loopback address has been updated to ['.$loopback.']');

})->descriptions('Get or set the loopback address used for Valet sites');

/**
Expand Down Expand Up @@ -211,10 +211,8 @@
* Create an Nginx proxy config for the specified domain
*/
$app->command('proxy domain host [--secure]', function ($domain, $host, $secure) {

Site::proxyCreate($domain, $host, $secure);
Nginx::restart();

})->descriptions('Create an Nginx proxy site for the specified host. Useful for docker, mailhog etc.', [
'--secure' => 'Create a proxy with a trusted TLS certificate'
]);
Expand All @@ -223,10 +221,8 @@
* Delete an Nginx proxy config
*/
$app->command('unproxy domain', function ($domain) {

Site::proxyDelete($domain);
Nginx::restart();

})->descriptions('Delete an Nginx proxy config.');

/**
Expand Down Expand Up @@ -469,7 +465,7 @@
output(sprintf('Your version of Valet (%s) is not the latest version available.', $version));
output('Upgrade instructions can be found in the docs: https://laravel.com/docs/valet#upgrading-valet');
}
})->descriptions('Determine if this is the latest version of Valet');
}, ['latest'])->descriptions('Determine if this is the latest version of Valet');

/**
* Install the sudoers.d entries so password is no longer required.
Expand Down

0 comments on commit a9ae715

Please sign in to comment.