Matis 0.1.0

Multi-level Asynchrounous Tools Interconnection System.

tools.BlackHole

All not linked ouptuts can trigger a resolution. But BlackHole has no output. So, it is usefull for ForEach tool.

Inputs

Example

var process = Matis.Process(function() {
  this.Path = Matis.tools.Constant('mypath/subpath');
  this.List = Matis.tools.ReadDir();
  this.IsJavascript = Matis.tools.MatchRegexp('\\.js$');
  this.IsTest = Matis.tools.MatchRegexp('spec');
  this.Loop = Matis.tools.ForEach({
    tool: this.IsJavascript,
    output: "no"
  });
  this.Garbage = Matis.tools.BlackHole();
}, [
  "Path > List > Loop",
  "IsJavascript:yes > IsTest",
  "IsJavascript:no  > Garbage"
]);

Without the BlackHole, this process would filter no file because all the no outputs are outputs of the ForEach.