Permalink
Browse files

fix deffered

  • Loading branch information...
1 parent b10b049 commit cf6c26938bc59f095018a8110053849bff99a4e6 @lvivski committed Nov 26, 2012
Showing with 18 additions and 16 deletions.
  1. +14 −14 bin/boss
  2. +2 −2 lib/boss.js
  3. +1 −0 test/auto.css
  4. +1 −0 test/mail.css
View
@@ -15,23 +15,23 @@ require('coa').Cmd()
})
.end()
.opt()
- .name('input').title('Input file (default: stdin)')
- .short('i').long('input')
- .input()
- .end()
+ .name('input').title('Input file (default: stdin)')
+ .short('i').long('input')
+ .input()
+ .end()
.opt()
- .name('level').title('Compression level (default: 0)')
- .short('c').long('compress')
- .end()
+ .name('level').title('Compression level (default: 0)')
+ .short('c').long('compress')
+ .end()
.opt()
- .name('output').title('Output file (default: stdout)')
- .short('o').long('output')
- .output()
- .end()
+ .name('output').title('Output file (default: stdout)')
+ .short('o').long('output')
+ .output()
+ .end()
.opt()
- .name('file').title('Partial file')
- .short('p').long('partial')
- .end()
+ .name('file').title('Partial file')
+ .short('p').long('partial')
+ .end()
.act(function(options) {
return require('../lib/boss').run(options)
})
View
@@ -12,7 +12,7 @@ exports.run = function run(options) {
})
options.input.once('end', function () {
- finish(input.join(''), options)
+ finish(input.join(''), options, deferred)
})
options.input.resume()
@@ -42,7 +42,7 @@ var partial = exports.partial = function partial(filename) {
return deferred.promise
}
-function finish(source, options) {
+function finish(source, options, deferred) {
partial(options.partial).then(function (partial) {
var env = new Env(options)
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit cf6c269

Please sign in to comment.