On this page
Class CompletionShell
Provide command completion shells such as bash.
- AppShell
CompletionShell
Package: Cake\Console\Command
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/CompletionShell.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/CompletionShell.php
Properties summary
-
$tasks
publicarray
Method Summary
-
_output() protectedEmit results as a string, space delimited
-
commands() publiclist commands
-
fuzzy() publicGuess autocomplete from the whole argument string
-
getOptionParser() publicGets the option parser instance and configures it.
-
main() publicNot called by the autocomplete shell - this is for curious users
-
options() publiclist options for the named command
-
startup() publicEcho no header by overriding the startup method
-
subCommands() publiclist subcommands for the named command
Method Detail
_output()source protected
_output( array $options array() )
Emit results as a string, space delimited
Parameters
-
array
$options
optional array() - The options to output
getOptionParser()source public
getOptionParser( )
Gets the option parser instance and configures it.
Returns
ConsoleOptionParser
Properties detail
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/class-CompletionShell.html