Documentation ¶
Overview ¶
The text/allot enables matching and parsing of predefined text commands.
var lib = require('text/allot'); lib.add("revert <commits:integer> commits on <project:string> at (live|test|dev)", function(match) { console.log('Commits:', match.integer('commits') ); console.log('Project:', match.string('project') ); console.log('Branch:', match.match(2) ); }); lib.add("commit all changes in <project:string> to (live|test|dev)", function(match) { console.log('Project:', match.string('project') ); console.log('Branch:', match.match(1) ); }); lib.run(context.req.body);
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.