Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-interactive terminals #30

Open
sagikazarmark opened this issue Nov 14, 2014 · 1 comment
Open

Non-interactive terminals #30

sagikazarmark opened this issue Nov 14, 2014 · 1 comment

Comments

@sagikazarmark
Copy link
Member

It is often a possibility to disable interactive console when running an application.

Is it possible to have it in CLImate? It probably only makes sense with the Input.

So when the interactive mode is disabled, prompts should either return their default value or null. It is the application's responsibility to handle any other cases, like getting the data from an option.

@duncan3dc
Copy link
Member

I've done some initial work on this, you can try it out like so:

composer require league/climate:dev-interactive-mode
$climate->setInteractive(false);

There's still a few things to resolve, and this might need to go in the next major due to prompt() no longer being guaranteed to return a value in some scenarios (eg checkboxes, etc).

But if you want to take it for a spin and provide any feedback that would be useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants