src/Shell/Task/CsvRelationTask.php
private function selection(string $path) : array
    {
        $modules = $this->getModules($path);
        if (empty($modules)) {
            $this->abort('Aborting, system modules not found.');
        }

        $result[] = $this->in('Please select first related module:', $modules);
        $result[] = $this->in('Please select second related module:', $modules);
        while ('y' === $this->in('Would you like to select more modules?', ['y', 'n'])) {
            $result[] = $this->in('Please select another related module:', $modules);
        }

        return $result;
    }
private function selection(string $path) : array
    {
        $modules = $this->getModules($path);
        if (empty($modules)) {
            $this->abort('Aborting, system modules not found.');
        }

        $result[] = $this->in('Please select first related module:', $modules);
        $result[] = $this->in('Please select second related module:', $modules);
        while ('y' === $this->in('Would you like to select more modules?', ['y', 'n'])) {
            $result[] = $this->in('Please select another related module:', $modules);
        }

        return $result;
    }
private function selection ( string $ path ) : array { $ modules = $ this -> getModules ( $ path ) ; if ( empty ( $ modules ) ) { $ this -> abort ( 'Aborting, system modules not found.' ) ; } $ result [ ] = $ this -> in ( 'Please select first related module:' , $ modules ) ; $ result [ ] = $ this -> in ( 'Please select second related module:' , $ modules ) ; while ( 'y' === $ this -> in ( 'Would you like to select more modules?' , [ 'y' , 'n' ] ) ) { $ result [ ] = $ this -> in ( 'Please select another related module:' , $ modules ) ; } return $ result ; }
Interactive shell for modules selection.

@param string $path Modules root path
@return string[]
Interactive shell for modules selection .