Several things changed.

- Make force and offline part of config, clearing all the options mess in the architecture
- Fix some bugs with the renderer
- Parse cli options
This commit is contained in:
André Cruz
2013-05-26 13:47:13 +01:00
parent c8d4d39068
commit 005b3356f2
10 changed files with 55 additions and 51 deletions

View File

@@ -10,11 +10,9 @@ var copy = require('../util/copy');
var createError = require('../util/createError');
var endpointParser = require('../util/endpointParser');
function Manager(options) {
options = options || {};
this._config = options.config || defaultConfig;
this._repository = new PackageRepository(options);
function Manager(config) {
this._config = config || defaultConfig;
this._repository = new PackageRepository(config);
}
// -----------------