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

disable path if no composer available, fixes #4101 #4111

Merged

Conversation

alcohol
Copy link
Member

@alcohol alcohol commented Jun 5, 2015

gracefully remove the option and continue, after informing the user

gracefully remove the option and continue, after informing the user
@@ -196,6 +196,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
$width--;
}

if ($input->getOption('path') && null === $composer) {
$this->getIO()->writeError('No composer.json found in the current directory, disabling "path" option');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be on a debug verbosity?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message should state: composer.json was not found in the current directory. Disabling "path" option.. It has a more humane sound to it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept the message in line with other messages in the show command. As for verbosity, no verbosity flags are used in similar situations in the show command.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, ok. But you're adding to the "grunt work" (I'm quoting you) in case a log verbosity overhaul is needed in the future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but until any decisions are made on how/what regarding that, it doesn't make sense to "plan for the future" as long as the future remains unclear.

Seldaek added a commit that referenced this pull request Jun 5, 2015
…ailable

disable path if no composer available, fixes #4101
@Seldaek Seldaek merged commit d3d3bb4 into composer:master Jun 5, 2015
@alcohol alcohol deleted the disable-path-when-composer-unavailable branch September 13, 2016 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants