Skip to content

Commit

Permalink
[BC] Rename Gitify install:package to Gitify package:install, and…
Browse files Browse the repository at this point in the history
… `Gitify install:modx` to `Gitify modx:install`.
  • Loading branch information
Mark-H committed Apr 14, 2015
1 parent 9e4952a commit ce9c596
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Changes that may have an impact on backwards compatibility (i.e. they may break existing workflows) are marked with `[BC]`.

## Current development (master)
- Nothing yet!

## 0.8.0 - 2015-04-14
- [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.
- Extract instantiation logic out of Gitify file into application.php for easier integration with non-CLI PHP.
- Small speed optimization (~ 10%) to `Gitify build --force` (#78)
- Passing arguments to `Gitify build` and `Gitify extract` now restricts building/extracting to those specific data partitions/folders (#51, #26)
Expand Down
4 changes: 2 additions & 2 deletions src/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
$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);
if ($helper->ask($input, $output, $question)) {

$command = $this->getApplication()->find('install-modx');
$command = $this->getApplication()->find('modx:install');
$arguments = array(
'command' => 'install:modx'
'command' => 'modx:install'
);
$input = new ArrayInput($arguments);
return $command->run($input, $output);
Expand Down
5 changes: 3 additions & 2 deletions src/Command/InstallModxCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ class InstallModxCommand extends BaseCommand
protected function configure()
{
$this
->setName('install:modx')
->setDescription('Downloads, configures and installs a fresh MODX installation.')
->setName('modx:install')
->setAliases(array('install:modx'))
->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]')

->addArgument(
'modx_version',
Expand Down
6 changes: 3 additions & 3 deletions src/Command/InstallPackageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ class InstallPackageCommand extends BaseCommand
protected function configure()
{
$this
->setName('install:package')
->setDescription('Downloads and installs MODX packages.')
->setName('package:install')
->setAliases(array('install:package'))
->setDescription('Downloads and installs MODX packages. [Note: <info>install:package</info> will be removed in 1.0, use <info>package:install</info> instead]')
->addArgument(
'package_name',
InputArgument::OPTIONAL,
Expand All @@ -43,7 +44,6 @@ protected function configure()
InputOption::VALUE_NONE,
'When --all and --interactive are specified, all packages defined in the .gitify config will be installed interactively.'
);
// TODO: add option `--update` for update installed packages, by default skip installed
}

/**
Expand Down

0 comments on commit ce9c596

Please sign in to comment.