Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

stubbed out help functionality

  • Loading branch information...
commit f05e5d86aa78e24437938f3805e90111a1ed5fd6 1 parent f0ac71d
@substack authored
Showing with 13 additions and 1 deletion.
  1. +5 −1 bin/command.sh
  2. +6 −0 bin/help.js
  3. +1 −0  help/summary
  4. +1 −0  package.json
View
6 bin/command.sh
@@ -1,2 +1,6 @@
#!/bin/bash
-fleet-$*
+if test -z "$*"; then
+ fleet-help
+else
+ fleet-$*
+fi
View
6 bin/help.js
@@ -0,0 +1,6 @@
+#!/usr/bin/env node
+var fs = require('fs');
+var topic = process.argv[2] || 'summary';
+var file = __dirname + '/../help/' + topic;
+
+fs.createReadStream(file).pipe(process.stdout, { end : false });
View
1  help/summary
@@ -0,0 +1 @@
+beepity boop
View
1  package.json
@@ -9,6 +9,7 @@
"main" : "index.js",
"bin" : {
"fleet" : "bin/command.sh",
+ "fleet-help" : "bin/help.js",
"fleet-remote" : "bin/remote.js",
"fleet-deploy" : "bin/deploy.js",
"fleet-drone" : "bin/drone.js",
Please sign in to comment.
Something went wrong with that request. Please try again.