diff --git a/src/Commands/BaseCommand.php b/src/Commands/BaseCommand.php index 1f63adc..9d5ce5e 100644 --- a/src/Commands/BaseCommand.php +++ b/src/Commands/BaseCommand.php @@ -87,7 +87,7 @@ protected function getFileContent(InputInterface $input, $option) return $filename; } - if ($filename && ftell(STDIN) === 0) { + if ($filename && ftell(STDIN) !== false) { return file_get_contents($filename); } diff --git a/src/Commands/Databases/Make.php b/src/Commands/Databases/Make.php index 9a6ffd3..01ec702 100644 --- a/src/Commands/Databases/Make.php +++ b/src/Commands/Databases/Make.php @@ -16,6 +16,7 @@ class Make extends BaseCommand protected $optionMap = [ 'user' => 'user', 'password' => 'password', + 'name' => 'name', ]; /** @@ -27,6 +28,7 @@ public function configure() ->addArgument('server', InputArgument::REQUIRED, 'The id of the server to create the database on.') ->addOption('user', null, InputOption::VALUE_REQUIRED, 'The username of an (optional) database user to create.', null) ->addOption('password', null, InputOption::VALUE_REQUIRED, 'The password of the database user. Required with "user".', null) + ->addOption('name', null, InputOption::VALUE_REQUIRED, 'The name of the database.', null) ->setDescription('Create a new database.'); } diff --git a/src/Commands/Env/Update.php b/src/Commands/Env/Update.php index 5a597ba..faabcc7 100644 --- a/src/Commands/Env/Update.php +++ b/src/Commands/Env/Update.php @@ -10,6 +10,13 @@ class Update extends BaseCommand { + /** + * @var array + */ + protected $optionMap = [ + 'file' => 'file', + ]; + /** * {@inheritdoc} */ diff --git a/src/Commands/Projects/InstallGit.php b/src/Commands/Projects/InstallGit.php index d5fb688..0062ea8 100644 --- a/src/Commands/Projects/InstallGit.php +++ b/src/Commands/Projects/InstallGit.php @@ -10,6 +10,14 @@ class InstallGit extends BaseCommand { + /** + * @var array + */ + protected $optionMap = [ + 'provider' => 'provider', + 'repository' => 'repository', + ]; + /** * {@inheritdoc} */