update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -5,9 +5,7 @@
|
||||
use Safe\Exceptions\ReadlineException;
|
||||
|
||||
/**
|
||||
* This function adds a line to the command line history.
|
||||
*
|
||||
* @param string $prompt The line to be added in the history.
|
||||
* @param string $prompt
|
||||
* @throws ReadlineException
|
||||
*
|
||||
*/
|
||||
@@ -22,19 +20,8 @@ function readline_add_history(string $prompt): void
|
||||
|
||||
|
||||
/**
|
||||
* Sets up a readline callback interface then prints
|
||||
* prompt and immediately returns.
|
||||
* Calling this function twice without removing the previous
|
||||
* callback interface will automatically and conveniently overwrite the old
|
||||
* interface.
|
||||
*
|
||||
* The callback feature is useful when combined with
|
||||
* stream_select as it allows interleaving of IO and
|
||||
* user input, unlike readline.
|
||||
*
|
||||
* @param string $prompt The prompt message.
|
||||
* @param callable $callback The callback function takes one parameter; the
|
||||
* user input returned.
|
||||
* @param string $prompt
|
||||
* @param callable $callback
|
||||
* @throws ReadlineException
|
||||
*
|
||||
*/
|
||||
@@ -49,8 +36,6 @@ function readline_callback_handler_install(string $prompt, callable $callback):
|
||||
|
||||
|
||||
/**
|
||||
* This function clears the entire command line history.
|
||||
*
|
||||
* @throws ReadlineException
|
||||
*
|
||||
*/
|
||||
@@ -65,11 +50,7 @@ function readline_clear_history(): void
|
||||
|
||||
|
||||
/**
|
||||
* This function registers a completion function. This is the same kind of
|
||||
* functionality you'd get if you hit your tab key while using Bash.
|
||||
*
|
||||
* @param callable $callback You must supply the name of an existing function which accepts a
|
||||
* partial command line and returns an array of possible matches.
|
||||
* @param callable $callback
|
||||
* @throws ReadlineException
|
||||
*
|
||||
*/
|
||||
@@ -84,9 +65,7 @@ function readline_completion_function(callable $callback): void
|
||||
|
||||
|
||||
/**
|
||||
* This function reads a command history from a file.
|
||||
*
|
||||
* @param null|string $filename Path to the filename containing the command history.
|
||||
* @param null|string $filename
|
||||
* @throws ReadlineException
|
||||
*
|
||||
*/
|
||||
@@ -105,9 +84,7 @@ function readline_read_history(?string $filename = null): void
|
||||
|
||||
|
||||
/**
|
||||
* This function writes the command history to a file.
|
||||
*
|
||||
* @param null|string $filename Path to the saved file.
|
||||
* @param null|string $filename
|
||||
* @throws ReadlineException
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user