Skip to content

Commit

Permalink
Move + lowercase the gitify binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-H committed Oct 12, 2021
1 parent 2e2e395 commit c340660
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,26 @@ Gitify v2 brings updated dependencies, additional functionality, and easier inst

The data file structure is unchanged, so you can safely update to v2.

1. To upgrade **with the intention of contributing to Gitify**, you can keep your installation. Bring it up to date with the master branch (`git fetch origin && git reset --hard origin/master`, or `git fetch upstream && git reset --hard upstream/master`), install the updated dependencies (`composer install`), and you're ready to go. You'll need to repeat these steps to upgrade to newer versions.
2. To upgrade **simply to use Gitify**, it's recommended to remove the v1 git-based installation complete, and instead install Gitify globally with Composer as described in the installation below.
1. To upgrade **with the intention of contributing to Gitify**, you can keep your exiting git installation.
1. Bring it up to date with the master branch (`git fetch origin && git reset --hard origin/master`, or `git fetch upstream && git reset --hard upstream/master`)
2. Install updated dependencies (`composer install`)
3. Update your `$PATH` to point to the `bin` directory. This may be in your `~/.bash_profile` or `~/.zshrc` file.
2. To upgrade **simply to use Gitify**, it's recommended to remove the v1 git-based installation completely, and instead install Gitify globally with Composer as described in the installation section below.

**Important to know:**

- Gitify v2 is not yet compatible with Gitify Watch. This will be restored in a future update of Gitify Watch.
- The minimum PHP version has been increased to 7.2.5.
- Documentation has not yet been updated for v2. This will happen soon.
- `Gitify` has changed to `gitify` and is now in a /bin subdirectory.

## Installation

````bash
composer global require modmore/gitify:^2
````

If that does not make gitify available on your path, add the output of `composer global config bin-dir --absolute` to your path (i.e. in the `~/.bash_profile` or `~/.zshrc` file on Mac/Linux).
If that does not make `gitify` available on your path, add the output of `composer global config bin-dir --absolute` to your path (i.e. in the `~/.bash_profile` or `~/.zshrc` file on Mac/Linux).

To update, use `composer global update modmore/gitify`.

Expand All @@ -40,7 +44,7 @@ Use the manual installation to build from source, useful if you intend to help m
$ git clone https://github.com/modmore/Gitify.git Gitify
$ cd Gitify
$ composer install --no-dev
$ chmod +x Gitify
$ chmod +x gitify
````

Please see [the Installation documentation](https://docs.modmore.com/en/Open_Source/Gitify/Installation/index.html) for more details.
Expand Down
4 changes: 2 additions & 2 deletions application.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
$application->add(new RestoreCommand);
$application->add(new ClearCacheCommand);
/**
* We return it so the CLI controller in /Gitify can run it, or for other integrations to
* work with the Gitify api directly.
* We return it so the CLI controller in /bin/gitify can run it, or for other integrations to
* work with the gitify api directly.
*/
return $application;
2 changes: 1 addition & 1 deletion Gitify → bin/gitify
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

use modmore\Gitify\Gitify;

$application = include dirname(__FILE__) . '/application.php';
$application = include dirname(__DIR__) . '/application.php';
$application->run();
File renamed without changes.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
}
},
"bin": [
"Gitify"
"bin/gitify"
]
}
2 changes: 1 addition & 1 deletion src/Command/BackupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function configure()
{
$this
->setName('backup')
->setDescription('Creates a quick backup of the entire MODX database. Runs automatically when using `Gitify build --force`, but can also be used manually.')
->setDescription('Creates a quick backup of the entire MODX database. Runs automatically when using `gitify build --force`, but can also be used manually.')
->addArgument(
'name',
InputArgument::OPTIONAL,
Expand Down
2 changes: 1 addition & 1 deletion src/Command/InstallPackageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* Installs a package
*
* @package modmore\Gitify\Command
* @package modmore\gitify\Command
*/
class InstallPackageCommand extends BaseCommand
{
Expand Down
4 changes: 2 additions & 2 deletions src/Command/RestoreCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Class RestoreCommand
*
* Used for restoring database backups created with `Gitify backup` (or possibly any other type of mysql backup).
* Used for restoring database backups created with `gitify backup` (or possibly any other type of mysql backup).
*
* @package modmore\Gitify\Command
*/
Expand All @@ -28,7 +28,7 @@ protected function configure()
{
$this
->setName('restore')
->setDescription('Restores the MODX database from a database dump created by `Gitify backup`')
->setDescription('Restores the MODX database from a database dump created by `gitify backup`')

->addArgument(
'file',
Expand Down

0 comments on commit c340660

Please sign in to comment.