Skip to content

Commit ce9c596

Browse files
committed
[BC] Rename Gitify install:package to Gitify package:install, and Gitify install:modx to Gitify modx:install.
1 parent 9e4952a commit ce9c596

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Changes that may have an impact on backwards compatibility (i.e. they may break existing workflows) are marked with `[BC]`.
44

55
## Current development (master)
6+
- Nothing yet!
7+
8+
## 0.8.0 - 2015-04-14
9+
- [BC] Rename `Gitify install:package` to `Gitify package:install`, and `Gitify install:modx` to `Gitify modx:install`. Aliases are in place so they will continue to work for now, but those will be removed in v1.
610
- Extract instantiation logic out of Gitify file into application.php for easier integration with non-CLI PHP.
711
- Small speed optimization (~ 10%) to `Gitify build --force` (#78)
812
- Passing arguments to `Gitify build` and `Gitify extract` now restricts building/extracting to those specific data partitions/folders (#51, #26)

src/Command/InitCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
178178
$question = new ConfirmationQuestion('No MODX installation found in the current directory. Would you like to install the latest stable version? <comment>(Y/N)</comment> ', false);
179179
if ($helper->ask($input, $output, $question)) {
180180

181-
$command = $this->getApplication()->find('install-modx');
181+
$command = $this->getApplication()->find('modx:install');
182182
$arguments = array(
183-
'command' => 'install:modx'
183+
'command' => 'modx:install'
184184
);
185185
$input = new ArrayInput($arguments);
186186
return $command->run($input, $output);

src/Command/InstallModxCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ class InstallModxCommand extends BaseCommand
2323
protected function configure()
2424
{
2525
$this
26-
->setName('install:modx')
27-
->setDescription('Downloads, configures and installs a fresh MODX installation.')
26+
->setName('modx:install')
27+
->setAliases(array('install:modx'))
28+
->setDescription('Downloads, configures and installs a fresh MODX installation. [Note: <info>install:modx</info> will be removed in 1.0, use <info>modx:install</info> instead]')
2829

2930
->addArgument(
3031
'modx_version',

src/Command/InstallPackageCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ class InstallPackageCommand extends BaseCommand
2424
protected function configure()
2525
{
2626
$this
27-
->setName('install:package')
28-
->setDescription('Downloads and installs MODX packages.')
27+
->setName('package:install')
28+
->setAliases(array('install:package'))
29+
->setDescription('Downloads and installs MODX packages. [Note: <info>install:package</info> will be removed in 1.0, use <info>package:install</info> instead]')
2930
->addArgument(
3031
'package_name',
3132
InputArgument::OPTIONAL,
@@ -43,7 +44,6 @@ protected function configure()
4344
InputOption::VALUE_NONE,
4445
'When --all and --interactive are specified, all packages defined in the .gitify config will be installed interactively.'
4546
);
46-
// TODO: add option `--update` for update installed packages, by default skip installed
4747
}
4848

4949
/**

0 commit comments

Comments
 (0)