Méthode | Description | |
---|---|---|
newFromContext ( TestSwarmContext $context ) | ||
run ( ) |
Méthode | Description | |
---|---|---|
checkAtty ( ) : boolean | ||
cliInput ( $prefix = '> ' ) : string | ||
cliInputSecret ( $prefix = '> ', $type = 'stars' ) : string | Retreive a secret value from the cli. | |
displayHelp ( ) | ||
error ( $msg ) | ||
execute ( ) | ||
getContext ( ) | ||
getFlag ( $key ) | ||
getOption ( $name ) | ||
init ( ) | ||
out ( $text ) | ||
outRaw ( $text ) | ||
parseCliArguments ( ) | ||
registerFlag ( $key, $type, string $description ) | Register a flag, usage any of these 4: - php script.php -a -b value -c "value" -d="value" | |
registerOption ( $name, $type, string $description ) | Register an option, usage any of these 4: - php script.php --foo --bar=value --quux="value" | |
setDescription ( $description ) | ||
timeWarningForScriptWill ( $action, $seconds = 10 ) | ||
wait ( $seconds, $message = '' ) |
Méthode | Description | |
---|---|---|
__construct ( ) |
protected cliInputSecret ( $prefix = '> ', $type = 'stars' ) : string | ||
Résultat | string |
public static newFromContext ( TestSwarmContext $context ) | ||
$context | TestSwarmContext |
protected registerFlag ( $key, $type, string $description ) | ||
$description | string |
protected registerOption ( $name, $type, string $description ) | ||
$description | string |
protected timeWarningForScriptWill ( $action, $seconds = 10 ) |