1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

set descriptions

This commit is contained in:
Taylor Otwell
2016-05-11 16:09:01 -05:00
parent d98fce6f08
commit e0003c6176

View File

@@ -57,7 +57,7 @@
Valet::createSudoersEntry();
output(PHP_EOL.'<info>Valet installed successfully!</info>');
});
})->descriptions('Install the Valet services');
/**
* Change the domain currently being used by Valet.
@@ -70,14 +70,14 @@
Configuration::updateKey('domain', $domain);
info('Your Valet domain has been updated to ['.$domain.'].');
});
})->descriptions('Set the domain used for Valet sites');
/**
* Get the domain currently being used by Valet.
*/
$app->command('current-domain', function () {
info(Configuration::read()['domain']);
});
})->descriptions('Get the current Valet domain');
/**
* Add the current working directory to the paths configuration.
@@ -86,7 +86,7 @@
Configuration::addPath(getcwd());
info("This directory has been added to Valet's paths.");
});
})->descriptions('Register the current working directory with Valet');
/**
* Remove the current working directory to the paths configuration.
@@ -95,7 +95,7 @@
Configuration::removePath(getcwd());
info("This directory has been removed from Valet's paths.");
});
})->descriptions('Remove the current working directory from Valet\'s list of paths');
/**
* Register a symbolic link with Valet.
@@ -104,14 +104,14 @@
$linkPath = Site::link(getcwd(), $name = $name ?: basename(getcwd()));
info('A ['.$name.'] symbolic link has been created in ['.$linkPath.'].');
});
})->descriptions('Link the current working directory to Valet');
/**
* Display all of the registered symbolic links.
*/
$app->command('links', function () {
passthru('ls -la '.VALET_HOME_PATH.'/Sites');
});
})->descriptions('Display all of the registered Valet links');
/**
* Unlink a link from the Valet links directory.
@@ -120,7 +120,7 @@
Site::unlink($name ?: basename(getcwd()));
info('The ['.$name.'] symbolic link has been removed.');
});
})->descriptions('Remove the specified Valet link');
/**
* Determine which Valet driver the current directory is using.
@@ -135,7 +135,7 @@
} else {
output('<fg=red>Valet could not determine which driver to use for this site.</>');
}
});
})->descriptions('Determine which Valet driver serves the current workign directory');
/**
* Stream all of the logs for all sites.
@@ -152,7 +152,7 @@
} else {
output('<fg=red>No log files were found.</>');
}
});
})->descriptions('Stream all of the logs for all Laravel sites registered with Valet');
/**
* Display all of the registered paths.
@@ -165,14 +165,14 @@
} else {
info('No paths have been registered.');
}
});
})->descriptions('Get all of the paths registered with Valet');
/**
* Echo the currently tunneled URL.
*/
$app->command('fetch-share-url', function () {
output(Ngrok::currentTunnelUrl());
});
})->descriptions('Get the URL to the current Ngrok tunnel');
/**
* Start the daemon services.
@@ -183,7 +183,7 @@
Caddy::restart();
info('Valet services have been started.');
});
})->descriptions('Start the Valet services');
/**
* Restart the daemon services.
@@ -194,7 +194,7 @@
Caddy::restart();
info('Valet services have been restarted.');
});
})->descriptions('Restart the Valet services');
/**
* Stop the daemon services.
@@ -205,7 +205,7 @@
Caddy::stop();
info('Valet services have been stopped.');
});
})->descriptions('Stop the Valet services');
/**
* Uninstall Valet entirely.
@@ -214,7 +214,7 @@
Caddy::uninstall();
info('Valet has been uninstalled.');
});
})->descriptions('Uninstall the Valet services');
/**
* Determine if this is the latest release of Valet.
@@ -225,7 +225,7 @@
} else {
output('NO');
}
});
})->descriptions('Determine if this is the latest version of Valet');
/**
* Run the application.