Class CompletionShell

Provide command completion shells such as bash.

AppShell
Extended by CompletionShell
Package: Cake\Console\Command
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/CompletionShell.php

Properties summary

  • $tasks public
    array
    Contains tasks to load and instantiate

Method Summary

  • _output() protected
    Emit results as a string, space delimited
  • commands() public
    list commands
  • fuzzy() public
    Guess autocomplete from the whole argument string
  • Gets the option parser instance and configures it.
  • main() public
    Not called by the autocomplete shell - this is for curious users
  • options() public
    list options for the named command
  • startup() public
    Echo no header by overriding the startup method
  • subCommands() public
    list 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

commands()source public

commands( )

list commands

fuzzy()source public

fuzzy( )

Guess autocomplete from the whole argument string

getOptionParser()source public

getOptionParser( )

Gets the option parser instance and configures it.

Returns

ConsoleOptionParser

main()source public

main( )

Not called by the autocomplete shell - this is for curious users

options()source public

options( )

list options for the named command

startup()source public

startup( )

Echo no header by overriding the startup method

subCommands()source public

subCommands( )

list subcommands for the named command

Properties detail

$taskssource

public array

Contains tasks to load and instantiate

array('Command')

© 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