Permalink
Browse files

Merge pull request #578 from trevorgerhardt/remove-component-open

Removed component-open
  • Loading branch information...
2 parents 8bf2198 + 3b8711c commit 5206e5daea3afbc254a0117edd882cde57367713 @trevorgerhardt trevorgerhardt committed Jun 17, 2014
Showing with 2 additions and 62 deletions.
  1. +1 −1 Makefile
  2. +1 −3 bin/component
  3. +0 −56 bin/component-open
  4. +0 −2 package.json
View
@@ -2,7 +2,7 @@
test:
@./node_modules/.bin/mocha \
--require should \
- --timeout 10s \
+ --timeout 20s \
--slow 3s \
--bail \
--reporter spec
View
@@ -19,15 +19,13 @@ program.on('--help', function(){
console.log(' install [name ...] install and save one or more components');
console.log(' link [folder] symlink a component');
console.log(' ls list installed components');
- console.log(' open open a repo\'s github page');
console.log(' outdated check for outdated pinned dependencies');
console.log(' pin pin ranged dependencies');
console.log(' search [query] search with the given query');
console.log(' update update pinned dependencies')
console.log(' validate validate component.json\'s');
console.log();
- console.log(' For more help, run `component open -h` for relevant links.');
- console.log(' You may also `component open help <command>` to open the relevant documentation in your favorite browser.')
+ console.log(' For more help, run `component build -h` for relevant links.');
console.log();
process.exit();
});
View
@@ -1,56 +0,0 @@
-#!/usr/bin/env node
-
-var program = require('commander');
-
-program.on('--help', function(){
- console.log(' Opens the relevant webpage in your favorite browser.')
- console.log();
- console.log(' Commands:');
- console.log();
- console.log(' open opens http://component.io');
- console.log(' open guide opens the guide to Component');
- console.log(' open troubleshooting opens the troubleshooting docs');
- console.log(' open help opens the component(1) API docs');
- console.log(' open help <command> opens the docs to a specific component(1) command');
- console.log(' open . opens the current component\'s github page');
- console.log(' open <repo> opens <repo>\'s github page');
- console.log();
- process.exit();
-});
-
-program.parse(process.argv);
-
-var fatal = require('component-consoler').fatal;
-var resolve = require('path').resolve;
-var open = require('open');
-
-var args = program.args;
-if (!args.length) return open('http://component.io/');
-
-var arg = args[0];
-
-if (arg === 'guide') return open('https://github.com/component/guide');
-
-if (arg === 'troubleshooting') return open('https://github.com/component/guide/blob/master/component/troubleshooting.md');
-
-if (arg === 'help') {
- var uri = 'https://github.com/component/guide/blob/master/component/api.md';
- if (args[1]) uri += '#' + args[1];
- open(uri);
- return;
-}
-
-if (arg === '.') {
- // to do: check if this file actually exists
- var json;
- try {
- json = require(resolve('component.json'));
- } catch (err) {
- fatal('error opening the component.json in this directory');
- }
- arg = json.repository || json.repo;
- if (!arg) fatal('this component.json does not have a .repository field');
-}
-
-if (!~arg.indexOf('/')) fatal('invalid repository name');
-open('https://github.com/' + arg);
View
@@ -30,7 +30,6 @@
"superagent": "~0.17.0",
"win-fork": "~1.1.1",
"debug": "*",
- "open": "~0.0.4",
"cogent": "~0.4.3",
"co": "^3.0.0"
},
@@ -47,7 +46,6 @@
"component-install": "bin/component-install",
"component-link": "bin/component-link",
"component-ls": "bin/component-ls",
- "component-open": "bin/component-open",
"component-outdated": "bin/component-outdated",
"component-pin": "bin/component-pin",
"component-search": "bin/component-search",

0 comments on commit 5206e5d

Please sign in to comment.