protected function setDeployOptions(InputInterface $input, OutputInterface $output)
    {
        $project = ProjectX::getProjectType();

        if ($project instanceof DeployAwareInterface) {
            $command_io = new SymfonyStyle($input, $output);
            $command_io->title('Deploy Build Options');

            $form = (new Form())
                ->setInput($input)
                ->setOutput($output)
                ->setHelperSet($this->getHelperSet())
                ->addFields([
                    (new BooleanField('deploy', 'Setup build deploy?'))
                        ->setDefault(false)
                        ->setSubform(function ($subform, $value) {
                            if (true === $value) {
                                $subform->addFields([
                                    (new TextField('repo_url', 'Repository URL')),
                                ]);
                            }
                        })
                ])
                ->process();

            $results = $form->getResults();

            if (isset($results['deploy']) && !empty($results['deploy'])) {
                $this->options['deploy'] = $results['deploy'];
            }
        }

        return $this;
    }
protected function setDeployOptions(InputInterface $input, OutputInterface $output)
    {
        $project = ProjectX::getProjectType();

        if ($project instanceof DeployAwareInterface) {
            $command_io = new SymfonyStyle($input, $output);
            $command_io->title('Deploy Build Options');

            $form = (new Form())
                ->setInput($input)
                ->setOutput($output)
                ->setHelperSet($this->getHelperSet())
                ->addFields([
                    (new BooleanField('deploy', 'Setup build deploy?'))
                        ->setDefault(false)
                        ->setSubform(function ($subform, $value) {
                            if (true === $value) {
                                $subform->addFields([
                                    (new TextField('repo_url', 'Repository URL')),
                                ]);
                            }
                        })
                ])
                ->process();

            $results = $form->getResults();

            if (isset($results['deploy']) && !empty($results['deploy'])) {
                $this->options['deploy'] = $results['deploy'];
            }
        }

        return $this;
    }
protected function setDeployOptions ( InputInterface $ input , OutputInterface $ output ) { $ project = ProjectX :: getProjectType ( ) ; if ( $ project instanceof DeployAwareInterface ) { $ command_io = new SymfonyStyle ( $ input , $ output ) ; $ command_io -> title ( 'Deploy Build Options' ) ; $ form = ( new Form ( ) ) -> setInput ( $ input ) -> setOutput ( $ output ) -> setHelperSet ( $ this -> getHelperSet ( ) ) -> addFields ( [ ( new BooleanField ( 'deploy' , 'Setup build deploy?' ) ) -> setDefault ( false ) -> setSubform ( function ( $ subform , $ value ) { if ( true === $ value ) { $ subform -> addFields ( [ ( new TextField ( 'repo_url' , 'Repository URL' ) ) , ] ) ; } } ) ] ) -> process ( ) ; $ results = $ form -> getResults ( ) ; if ( isset ( $ results [ 'deploy' ] ) && ! empty ( $ results [ 'deploy' ] ) ) { $ this -> options [ 'deploy' ] = $ results [ 'deploy' ] ; } } return $ this ; }
Set project deployment options.

@param InputInterface $input
@param OutputInterface $output

@return $this
Set project deployment options .