-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure additional flags & options are forwarded (#106)
Closes #65
- Loading branch information
Showing
9 changed files
with
262 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
Loading composer repositories with package information | ||
Updating dependencies | ||
Dependency resolution completed in 0.000 seconds | ||
Analyzed 90 packages to resolve dependencies | ||
Analyzed 90 rules to resolve dependencies | ||
Dependency resolution completed in 0.000 seconds | ||
Lock file operations: 1 install, 0 updates, 0 removals | ||
Installs: bamarni/composer-bin-plugin:dev-hash | ||
- Locking bamarni/composer-bin-plugin (dev-hash) | ||
Writing lock file | ||
Installing dependencies from lock file | ||
Installing dependencies from lock file (including require-dev) | ||
Package operations: 1 install, 0 updates, 0 removals | ||
Installs: bamarni/composer-bin-plugin:dev-hash | ||
- Installing bamarni/composer-bin-plugin (dev-hash): Symlinking from ../.. | ||
Generating autoload files | ||
> post-autoload-dump: Bamarni\Composer\Bin\Plugin->onPostAutoloadDump | ||
[bamarni-bin] Calling onPostAutoloadDump(). | ||
[bamarni-bin] The command is being forwarded. | ||
[bamarni-bin] Original input: update --prefer-lowest --verbose. | ||
[bamarni-bin] Current working directory: /path/to/project/e2e/scenario8 | ||
[bamarni-bin] Configuring bin directory to /path/to/project/e2e/scenario8/vendor/bin. | ||
[bamarni-bin] Checking namespace vendor-bin/ns1 | ||
[bamarni-bin] Changed current directory to vendor-bin/ns1. | ||
[bamarni-bin] Running `@composer update --prefer-lowest --verbose --working-dir='.'`. | ||
Loading composer repositories with package information | ||
Updating dependencies | ||
Lock file operations: 2 installs, 0 updates, 0 removals | ||
- Locking nikic/iter (v1.6.0) | ||
- Locking phpstan/phpstan (1.8.0) | ||
Dependency resolution completed in 0.000 seconds | ||
Analyzed 90 packages to resolve dependencies | ||
Analyzed 90 rules to resolve dependencies | ||
Nothing to modify in lock file | ||
Writing lock file | ||
Installing dependencies from lock file | ||
Package operations: 1 install, 0 updates, 0 removals | ||
- Installing nikic/iter (v1.6.0): Extracting archive | ||
Installing dependencies from lock file (including require-dev) | ||
Nothing to install, update or remove | ||
Generating autoload files | ||
–––––––––––––– | ||
nikic/iter | ||
[bamarni-bin] Changed current directory to /path/to/project/e2e/scenario8. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
{ | ||
"require": { | ||
"nikic/iter": "v1.6.0" | ||
}, | ||
"require-dev": { | ||
"phpstan/phpstan": "1.8.0" | ||
} | ||
} | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Bamarni\Composer\Bin; | ||
|
||
use RuntimeException; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use function sprintf; | ||
|
||
final class InvalidBinInput extends RuntimeException | ||
{ | ||
public static function forBinInput(InputInterface $input): self | ||
{ | ||
return new self( | ||
sprintf( | ||
'Could not parse the input "%s". Expected the input to be in the format "bin <namespaceName> <commandToExecuteInBinNamespace>", for example "bin all update --prefer-lowest".', | ||
$input | ||
) | ||
); | ||
} | ||
|
||
public static function forNamespaceInput(InputInterface $input): self | ||
{ | ||
return new self( | ||
sprintf( | ||
'Could not parse the input (executed within the namespace) "%s".', | ||
$input | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.