var whimp = require('../whimper');
var logger = require('../logger');

whimp.task('a', { 
  run: function(params, resolver) {
    setTimeout(function() {
      resolver.resolve('Some good');
    }, 1000);
  } 
});

whimp.task('b', {
  run: function(params, resolver) {
    setTimeout(function(){
      resolver.reject('I suck.');
    }, 2500);
  }
})

whimp.task('c', [ 'd' ]);
whimp.task('d', [ 'e' ]);
whimp.task('e', [ 'a' ]);
whimp.task('f', { 
  run: function(params, resolver) {
    resolver.resolve();
  } 
});

whimp.task('simple', {
  depends: [ 'c', 'a' ],
  describe: 'A very simple task for testing.',
  options: {
    '!key': 'Some required option.',
    'value': 'Some optional value.'
  },
  run: function(params, resolver) {
    logger.write('simple', 'got key=' + params.key);
    return whimp.run('b');
  }
});

whimp.cli();
@@ -127,81 +127,19 @@
     
-setTimeout(function() %7B%0A      resolver.resolve('Some good');%0A    %7D, 1000)
+return true
 ;%0A  

Update examples.