modmore / Gitify

Command line toolkit to make managing a MODX site in git a lot easier.
MIT License
122 stars 55 forks source link

Random packages when executing install:package #57

Open Beagon opened 9 years ago

Beagon commented 9 years ago

When I put in the command Gitify install:package without any parameters it gives me 10 random packages from the ModX repositories instead of the packages defined in .gitify.

➜  gitify_test  gitify install:package   
Searching Provider for ...
Do you want to install ReCaptchaV2 (0.9.2)? [Y/n]: n
Do you want to install Locker (0.1.0)? [Y/n]: n
Do you want to install VerticalNavigation (0.1.0)? [Y/n]: n
Do you want to install LangRouter (1.0.0)? [Y/n]: n
Do you want to install TemplateSelect (1.0.0)? [Y/n]: n
Do you want to install FileAttach (1.0.1)? [Y/n]: n
Do you want to install shopkeeper3 (3.0.0)? [Y/n]: n
Do you want to install GoogleCloudStorage (1.0.0)? [Y/n]: n
Do you want to install AddThis widget (1.1)? [Y/n]: n
Do you want to install Lunchbox (1.0.0)? [Y/n]: n
Cannot install package .
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8740515-random-packages-when-executing-install-package?utm_campaign=plugin&utm_content=tracker%2F2783338&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2783338&utm_medium=issues&utm_source=github).
alroniks commented 9 years ago

Thank you @Thunderofnl Now command checks only when package name specified or when specified parameter --all. I will create PR soon.

Mark-H commented 9 years ago

@Alroniks Any update on that PR? :)

Mark-H commented 9 years ago

This might be nice to keep in as a feature - show me a list of random packages I can install.

For something like the modmore provider this is actually interesting as there's only 8 packages I think, so it will give you a list of all of them to just say Y or N :D