diff --git a/composer.json b/composer.json index cea0032..fabbb6a 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,7 @@ "symfony/console": "~2.1", "symfony/finder": "~2.1", "symfony/process": "~2.1", - "knplabs/packagist-api": "~1.0", - "clue/zenity-react": "0.1.*" + "knplabs/packagist-api": "~1.0" }, "autoload": { "psr-0": {"Clue": "src/"} diff --git a/composer.lock b/composer.lock index 1d48efe..47c50df 100644 --- a/composer.lock +++ b/composer.lock @@ -1,47 +1,11 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" + "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" ], - "hash": "577b5b0cf95fa67ae653ff1eceeeed0a", + "hash": "0b471ef368c3cd2f99d8052c5a93e3ad", "packages": [ - { - "name": "clue/zenity-react", - "version": "v0.1.1", - "source": { - "type": "git", - "url": "https://github.com/clue/zenity-react.git", - "reference": "6ca20be6f6c4701aa6b0dbc1559361839efecf44" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/clue/zenity-react/zipball/6ca20be6f6c4701aa6b0dbc1559361839efecf44", - "reference": "6ca20be6f6c4701aa6b0dbc1559361839efecf44", - "shasum": "" - }, - "require": { - "icecave/mephisto": "0.1.*", - "react/promise": "~1" - }, - "type": "library", - "autoload": { - "psr-0": { - "Clue\\Zenity\\React": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christian Lück", - "email": "christian@lueck.tv" - } - ], - "description": "Async Zenity", - "time": "2014-01-24 13:35:59" - }, { "name": "doctrine/inflector", "version": "v1.0", @@ -106,93 +70,6 @@ ], "time": "2013-01-10 21:49:15" }, - { - "name": "eloquent/enumeration", - "version": "3.0.2", - "source": { - "type": "git", - "url": "https://github.com/eloquent/enumeration.git", - "reference": "ee87a3062d71a00cb61167f2d59dd479a129caf6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/eloquent/enumeration/zipball/ee87a3062d71a00cb61167f2d59dd479a129caf6", - "reference": "ee87a3062d71a00cb61167f2d59dd479a129caf6", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "icecave/archer": "~0.2" - }, - "type": "library", - "autoload": { - "psr-0": { - "Eloquent\\Enumeration": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Erin Millard", - "email": "ezzatron@gmail.com", - "homepage": "http://ezzatron.com/" - } - ], - "description": "An enumeration implementation for PHP.", - "homepage": "https://github.com/eloquent/enumeration", - "keywords": [ - "class", - "enum", - "enumeration", - "set" - ], - "time": "2013-03-04 09:52:52" - }, - { - "name": "evenement/evenement", - "version": "v1.0.0", - "source": { - "type": "git", - "url": "https://github.com/igorw/evenement.git", - "reference": "fa966683e7df3e5dd5929d984a44abfbd6bafe8d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/igorw/evenement/zipball/fa966683e7df3e5dd5929d984a44abfbd6bafe8d", - "reference": "fa966683e7df3e5dd5929d984a44abfbd6bafe8d", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "Evenement": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Igor Wiedler", - "email": "igor@wiedler.ch", - "homepage": "http://wiedler.ch/igor/" - } - ], - "description": "Événement is a very simple event dispatching library for PHP 5.3", - "keywords": [ - "event-dispatcher" - ], - "time": "2012-05-30 15:01:08" - }, { "name": "guzzle/common", "version": "v3.8.0", @@ -450,229 +327,6 @@ ], "time": "2013-11-09 17:22:29" }, - { - "name": "icecave/collections", - "version": "0.6.0", - "source": { - "type": "git", - "url": "https://github.com/IcecaveStudios/collections.git", - "reference": "b36f5d1d148ba772753feaae1cee252c706d718c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/IcecaveStudios/collections/zipball/b36f5d1d148ba772753feaae1cee252c706d718c", - "reference": "b36f5d1d148ba772753feaae1cee252c706d718c", - "shasum": "" - }, - "require": { - "icecave/repr": "~1", - "php": ">=5.3.3" - }, - "require-dev": { - "eloquent/liberator": "~1", - "eloquent/typhoon": "~0.9", - "icecave/archer": "~0.2" - }, - "type": "library", - "extra": { - "typhoon": { - "output-path": "lib-typhoon", - "validator-namespace": "Icecave\\Collections\\TypeCheck", - "use-native-callable": false - } - }, - "autoload": { - "psr-0": { - "Icecave\\Collections": "lib", - "Icecave\\Collections\\TypeCheck": "lib-typhoon" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "James Harris", - "email": "james.harris@icecave.com.au", - "homepage": "https://github.com/jmalloc" - } - ], - "description": "A set of PHP collection types loosely inspired by the .NET runtime and the C++ STL.", - "homepage": "https://github.com/IcecaveStudios/collections", - "keywords": [ - "array", - "collection", - "container", - "hash", - "map", - "queue", - "sequence", - "stack" - ], - "time": "2013-02-26 04:19:11" - }, - { - "name": "icecave/isolator", - "version": "2.2.0", - "source": { - "type": "git", - "url": "https://github.com/IcecaveStudios/isolator.git", - "reference": "2f3fbfcee90790fb3ddde9d4288a2a927cdf6dd6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/IcecaveStudios/isolator/zipball/2f3fbfcee90790fb3ddde9d4288a2a927cdf6dd6", - "reference": "2f3fbfcee90790fb3ddde9d4288a2a927cdf6dd6", - "shasum": "" - }, - "require": { - "php": ">=5.3" - }, - "require-dev": { - "icecave/archer": "~0.4" - }, - "type": "library", - "autoload": { - "psr-0": { - "Icecave\\Isolator": "lib" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "James Harris", - "email": "james.harris@icecave.com.au", - "homepage": "https://github.com/jmalloc" - } - ], - "description": "Isolate PHP tests from the global environment.", - "homepage": "https://github.com/IcecaveStudios/isolator", - "keywords": [ - "fake", - "mock", - "phake", - "phpunit", - "test", - "unit" - ], - "time": "2013-06-04 05:00:29" - }, - { - "name": "icecave/mephisto", - "version": "0.1.0", - "source": { - "type": "git", - "url": "https://github.com/IcecaveStudios/mephisto.git", - "reference": "737eaae1a42d6e36bee72a41e1ab2981b7a60863" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/IcecaveStudios/mephisto/zipball/737eaae1a42d6e36bee72a41e1ab2981b7a60863", - "reference": "737eaae1a42d6e36bee72a41e1ab2981b7a60863", - "shasum": "" - }, - "require": { - "eloquent/enumeration": "~3", - "ext-pcntl": "*", - "ext-posix": "*", - "icecave/collections": "0.6.*", - "icecave/isolator": "~2.2", - "php": ">=5.3", - "react/event-loop": "0.3.*", - "react/stream": "0.3.*" - }, - "require-dev": { - "eloquent/liberator": "~1", - "eloquent/typhoon": "0.9.*", - "icecave/archer": "1.0.0-alpha.2" - }, - "type": "library", - "extra": { - "typhoon": { - "output-path": "lib-typhoon", - "validator-namespace": "Icecave\\Mephisto\\TypeCheck", - "use-native-callable": false - } - }, - "autoload": { - "psr-0": { - "Icecave\\Mephisto": "lib", - "Icecave\\Mephisto\\TypeCheck": "lib-typhoon" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "James Harris", - "email": "james.harris@icecave.com.au", - "homepage": "https://github.com/jmalloc" - } - ], - "description": "An asynchronous process management library for ReactPHP.", - "homepage": "https://github.com/IcecaveStudios/mephisto", - "keywords": [ - "background", - "daemon", - "fork", - "process", - "react", - "server" - ], - "time": "2013-09-06 00:17:36" - }, - { - "name": "icecave/repr", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/IcecaveStudios/repr.git", - "reference": "9a78b2b12dbb6fbf46d995f7255ee1f1118bfd8b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/IcecaveStudios/repr/zipball/9a78b2b12dbb6fbf46d995f7255ee1f1118bfd8b", - "reference": "9a78b2b12dbb6fbf46d995f7255ee1f1118bfd8b", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "phake/phake": "1.*" - }, - "type": "library", - "autoload": { - "psr-0": { - "Icecave\\Repr": "lib" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "James Harris", - "email": "james.harris@icecave.com.au", - "homepage": "https://github.com/jmalloc" - } - ], - "description": "Human readable string representations of everything.", - "homepage": "https://github.com/IcecaveStudios/repr", - "keywords": [ - "repr", - "representation", - "string" - ], - "time": "2013-01-11 00:04:43" - }, { "name": "knplabs/packagist-api", "version": "v1.1", @@ -827,137 +481,6 @@ ], "time": "2013-10-15 22:58:04" }, - { - "name": "react/event-loop", - "version": "v0.3.3", - "target-dir": "React/EventLoop", - "source": { - "type": "git", - "url": "https://github.com/reactphp/event-loop.git", - "reference": "49208fa3a15c9eae4adf8351ee9caa4064fe550d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/event-loop/zipball/49208fa3a15c9eae4adf8351ee9caa4064fe550d", - "reference": "49208fa3a15c9eae4adf8351ee9caa4064fe550d", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "suggest": { - "ext-libev": "*", - "ext-libevent": ">=0.0.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.3-dev" - } - }, - "autoload": { - "psr-0": { - "React\\EventLoop": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Event loop abstraction layer that libraries can use for evented I/O.", - "keywords": [ - "event-loop" - ], - "time": "2013-07-08 22:38:22" - }, - { - "name": "react/promise", - "version": "v1.0.4", - "source": { - "type": "git", - "url": "https://github.com/reactphp/promise.git", - "reference": "d6de8cae1dbb4878d909c41cb89aff764504472c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/d6de8cae1dbb4878d909c41cb89aff764504472c", - "reference": "d6de8cae1dbb4878d909c41cb89aff764504472c", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-0": { - "React\\Promise": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jan Sorgalla", - "email": "jsorgalla@googlemail.com", - "homepage": "http://sorgalla.com", - "role": "maintainer" - } - ], - "description": "A lightweight implementation of CommonJS Promises/A for PHP", - "time": "2013-04-03 14:05:55" - }, - { - "name": "react/stream", - "version": "v0.3.3", - "target-dir": "React/Stream", - "source": { - "type": "git", - "url": "https://github.com/reactphp/stream.git", - "reference": "b72900ab00513b591fb101faecad38f9c8eab8da" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/reactphp/stream/zipball/b72900ab00513b591fb101faecad38f9c8eab8da", - "reference": "b72900ab00513b591fb101faecad38f9c8eab8da", - "shasum": "" - }, - "require": { - "evenement/evenement": "1.0.*", - "php": ">=5.3.3" - }, - "suggest": { - "react/event-loop": "0.3.*", - "react/promise": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.3-dev" - } - }, - "autoload": { - "psr-0": { - "React\\Stream": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Basic readable and writable stream interfaces that support piping.", - "keywords": [ - "pipe", - "stream" - ], - "time": "2013-07-09 00:44:12" - }, { "name": "symfony/console", "version": "v2.4.1", diff --git a/src/Clue/PharComposer/App.php b/src/Clue/PharComposer/App.php index ae16789..4e80879 100644 --- a/src/Clue/PharComposer/App.php +++ b/src/Clue/PharComposer/App.php @@ -16,7 +16,9 @@ public function __construct() $this->add(new Command\Build()); $this->add(new Command\Search()); $this->add(new Command\Install()); - $this->add(new Command\Gui()); + + // GUI feature disabled for now, see #35 + // $this->add(new Command\Gui()); } /** @@ -37,7 +39,7 @@ protected function getCommandName(InputInterface $input) private function getDefaultCommandName() { - $gui = $this->get('gui'); + $gui = $this->has('gui') ? $this->get('gui') : null; if ($gui instanceof Command\Gui && $gui->hasZenity()) { return 'gui'; }