Adam Stankiewicz
442aa72ccc
[fixes 5c839724] Prevent command like "bower info" from crashing on render
2014-06-24 11:39:44 +02:00
Thomas Scholtes
5c83972401
Use promise interface for commands
...
This commit changes the interface of the command functions exported by the
files in `lib/commands`. The functions now return a promise and accept a logger
as the first argument. This has several advantages
* The promise style is consistent with the rest of the code.
* It removes a lot of duplicate code.
* The command factory does not need to proxy the logger object.
2014-06-20 21:14:26 +02:00
Pascal Hartig
e84f71cd37
Basic usage tracking with insight
...
The user is prompted with a question whether he would like to provide usage data
on the first start, when run in interactive mode. The current implementation
tracks calls to `install`, `info`, `search` and `uninstall` when run with at
least one parameter.
Fixes #260
Closes gh-796.
2013-12-05 22:37:32 +01:00
André Cruz
0866c93573
Do not swallow sync errors from commands event handlers, fixes #849 .
2013-09-04 09:58:50 +01:00
André Cruz
639c2290b7
Do not list versions if a property was requested, #684 .
2013-08-22 18:27:41 +01:00
André Cruz
cacef7b316
Better var name.
2013-08-11 15:18:00 +01:00
André Cruz
abe4264a13
Close GH-760: Info command now shows the latest version package meta always, fixes #759 .
2013-08-11 14:44:58 +01:00
André Cruz
5d4007918c
Fix info not showing up bower.json when a property was requested without a version, closes #684 .
2013-07-30 08:20:00 +01:00
André Cruz
91779a67fb
Pass logger to the registry client, get rid of unnecessary emitter in commands.
2013-07-20 22:08:30 +01:00
André Cruz
0cf8af00b3
Separate logger into its own module.
2013-07-20 20:37:05 +01:00
André Cruz
56679d2a8e
Fix passing configuration into commands on programmatic usage, fixes #608 .
2013-07-11 07:56:53 +01:00
André Cruz
7becb19da4
Implement check of newer versions in the list command.
...
Also:
- Fix some errors not being emitted when a command failed.
- Update semver module; no need to check .valid against null.
2013-07-03 14:37:28 +01:00
André Cruz
f9f8f7aebd
Implement link command.
...
Also:
- CS fixes
- Remove options argument from commands that do not have them
- Use console.trace instead of err.stack (more reliable)
2013-06-24 23:19:59 +01:00
André Cruz
97edd21784
Add lookup command, minor tweaks to the info command.
2013-06-23 14:58:54 +01:00
André Cruz
103d1adc46
CS.
2013-06-23 01:28:26 +01:00
André Cruz
4c3802878a
Another huge commit.
...
- Add info command
- Fix list --paths
- Fix search with no name
- Fix conflict detection when uninstalling
- Mix tweaks and fixes
2013-06-23 01:14:08 +01:00