src/Console/Completion/ZshGenerator.php
public function commandSubcommandStates(CommandInterface $cmd)
    {
        $args = [];
        $cmds = $this->visibleCommands($cmd->getCommands());
        foreach ($cmds as $c) {
            $args[] = sprintf("'%s:->%s'", $c->name(), $c->name()); // generate argument states
        }

        return $args;
    }
public function commandSubcommandStates(CommandInterface $cmd)
    {
        $args = [];
        $cmds = $this->visibleCommands($cmd->getCommands());
        foreach ($cmds as $c) {
            $args[] = sprintf("'%s:->%s'", $c->name(), $c->name()); // generate argument states
        }

        return $args;
    }
public function commandSubcommandStates ( CommandInterface $ cmd ) { $ args = [ ] ; $ cmds = $ this -> visibleCommands ( $ cmd -> getCommands ( ) ) ; foreach ( $ cmds as $ c ) { $ args [ ] = sprintf ( "'%s:->%s'" , $ c -> name ( ) , $ c -> name ( ) ) ; // generate argument states } return $ args ; }
Return subcommand completion status as an array of string

@param Command $cmd The command object

@return string[]
Return subcommand completion status as an array of string