From 68f4150249b762eddd535a42ef50370b6bba9653 Mon Sep 17 00:00:00 2001 From: George Stagas Date: Thu, 7 Mar 2013 11:06:14 +0200 Subject: [PATCH] add explicit remotes using `-r ` --- bin/component-install | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/component-install b/bin/component-install index e80546dc..9768ec9a 100755 --- a/bin/component-install +++ b/bin/component-install @@ -20,6 +20,7 @@ var program = require('commander') program .usage('[name ...]') .option('-d, --dev', 'install development dependencies') + .option('-r, --remotes ', 'remotes to try installing from') .option('-o, --out ', 'output components to the given ') .option('-f, --force', 'force installation even if previously installed') @@ -107,6 +108,15 @@ if (!local) { // implicit remotes conf.remotes = conf.remotes || []; + +// explicit remotes + +if (program.remotes) { + conf.remotes = program.remotes.split(',').concat(conf.remotes); +} + +// default to github + conf.remotes.push('https://raw.github.com'); // install