From 26f6c3c0339427919360c844ce8d54f3c7c3b948 Mon Sep 17 00:00:00 2001 From: Murray Date: Fri, 24 Mar 2023 10:09:01 +0800 Subject: [PATCH] Change new 'config' option to 'dotfile' to avoid conflict with modx:install command --- src/BaseCommand.php | 2 +- src/Command/ExtractCommand.php | 2 +- src/Gitify.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BaseCommand.php b/src/BaseCommand.php index 362e532..2488603 100644 --- a/src/BaseCommand.php +++ b/src/BaseCommand.php @@ -54,7 +54,7 @@ public function initialize(InputInterface $input, OutputInterface $output) if ($this->loadConfig) { - $this->config = Gitify::loadConfig($input->getOption('config')); + $this->config = Gitify::loadConfig($input->getOption('dotfile')); } if ($this->loadMODX) { diff --git a/src/Command/ExtractCommand.php b/src/Command/ExtractCommand.php index bc60189..3a0396e 100644 --- a/src/Command/ExtractCommand.php +++ b/src/Command/ExtractCommand.php @@ -89,7 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output) } if ($input->getOption('packages')) { - $this->extractPackages($input->getOption('config')); + $this->extractPackages($input->getOption('dotfile')); } $output->writeln('Done! ' . $this->getRunStats()); diff --git a/src/Gitify.php b/src/Gitify.php index bc43e7f..77679ba 100644 --- a/src/Gitify.php +++ b/src/Gitify.php @@ -169,7 +169,7 @@ protected function getDefaultInputDefinition() new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message.'), new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.'), new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display the Gitify version.'), - new InputOption('--config', null, InputOption::VALUE_REQUIRED, 'Gitify YAML file to use.', '.gitify'), + new InputOption('--dotfile', null, InputOption::VALUE_REQUIRED, 'Gitify YAML file to use.', '.gitify'), )); } }