Comparing version 1.4.0 to 1.5.0
@@ -17,2 +17,4 @@ var Command, Option, Signature, _; | ||
exports.utils = require('./utils'); | ||
exports.command = function(options) { | ||
@@ -19,0 +21,0 @@ var command; |
{ | ||
"name": "capitano", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Powerful, non opitionated command line parser for serious applications", | ||
@@ -5,0 +5,0 @@ "main": "build/capitano.js", |
@@ -209,2 +209,21 @@ Capitano | ||
## capitano.utils | ||
A collection of handy utilities for working with Capitano. | ||
### capitano.utils.getStdin(callback) | ||
Read from stdin. This function is used when you specify a stdin parameter, such as `<|foo>`. | ||
You'll most often use the stdin parameter syntax, but this function is publicly available in case you need more control. | ||
Example: | ||
```coffee | ||
capitano = require('capitano') | ||
capitano.utils.getStdin (data) -> | ||
console.log("We got #{data} from stdin") | ||
``` | ||
Classes | ||
@@ -400,2 +419,6 @@ ------- | ||
### 1.5.0 | ||
- Expose internal utils object as `capitano.utils`. | ||
### 1.4.0 | ||
@@ -402,0 +425,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131661
722
491