UNPKG

hyde-cli

Version:

Hyde's command line interface module

27 lines (20 loc) 617 B
# Hyde-cli This is the command line module for [Hyde](http://hydejs.com). If you want to make your own command line tool for Hyde just require this module and add your subscription too one of these observables: ```javascript module.exports.init = function(hydeConfig) { var observer = Rx.Observer.create( function (x) { //Do on Next }, function (err) { //Do on Error }, function () { //Do on Completed }); var subscription = hydeConfig.getObservable('args').subscribe(observer); var subscription2 = hydeConfig.getObservable('commands').subscribe(observer); } ```