Classes/Application/Command/PatternCommandController.php
/**
     * Show some helpful documentation for the given pattern
     *
     * @param string $patternKey A pattern key (see ./flow pattern:list) or "?". The latter will result in prompt in which a pattern can be manually selected.
     * @return void
     */
Show some helpful documentation for the given pattern
@param string $patternKey A pattern key  or "?". The latter will result in prompt in which a pattern can be manually selected.
@return void
Show some helpful documentation for the given pattern @param string $patternKey A pattern key or " ? " . The latter will result in prompt in which a pattern can be manually selected . @return void
public function describeCommand(string $patternKey): void
    {
        $pattern = $this->patternResolver->resolve($patternKey);
        $this->outputLine();
        $this->outputFormatted('<em> %s - Summary </em>', [$pattern->getKey()]);
        $this->outputLine();
        $this->outputFormatted('  <b>Short description</b>');
        $this->outputFormatted($pattern->getShortDescription(), [], 4);
        $this->outputLine();
        $this->outputFormatted('  <b>Description</b>');
        $this->outputFormatted($pattern->getDescription(), [], 4);
        $this->outputLine();
        $this->outputFormatted('  <b>Arguments</b>');
        foreach ($pattern->getArguments() as $key => $description) {
            $this->outputFormatted('#' . $key . ' - ' . $description, [], 4);
        }
        $this->outputLine();
        $this->outputFormatted('  <b>Usage Example</b>');
        $this->outputFormatted($pattern->getUsageExample(), [], 4);
        $this->outputLine();
    }
public function describeCommand ( string $ patternKey ) : void { $ pattern = $ this -> patternResolver -> resolve ( $ patternKey ) ; $ this -> outputLine ( ) ; $ this -> outputFormatted ( '<em> %s - Summary </em>' , [ $ pattern -> getKey ( ) ] ) ; $ this -> outputLine ( ) ; $ this -> outputFormatted ( '  <b>Short description</b>' ) ; $ this -> outputFormatted ( $ pattern -> getShortDescription ( ) , [ ] , 4 ) ; $ this -> outputLine ( ) ; $ this -> outputFormatted ( '  <b>Description</b>' ) ; $ this -> outputFormatted ( $ pattern -> getDescription ( ) , [ ] , 4 ) ; $ this -> outputLine ( ) ; $ this -> outputFormatted ( '  <b>Arguments</b>' ) ; foreach ( $ pattern -> getArguments ( ) as $ key => $ description ) { $ this -> outputFormatted ( '#' . $ key . ' - ' . $ description , [ ] , 4 ) ; } $ this -> outputLine ( ) ; $ this -> outputFormatted ( '  <b>Usage Example</b>' ) ; $ this -> outputFormatted ( $ pattern -> getUsageExample ( ) , [ ] , 4 ) ; $ this -> outputLine ( ) ; }
Show some helpful documentation for the given pattern
 @param string $patternKey A pattern key (see ./flow pattern:list) or "?".
Show some helpful documentation for the given pattern @param string $patternKey A pattern key ( see . / flow pattern : list ) or " ? " .