serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
26 lines (23 loc) • 713 B
JavaScript
const Complete = require('./complete');
module.exports = tabtab;
tabtab.Commands = require('./commands');
tabtab.Complete = Complete;
// Public: Tabtab entry point.
//
// It provides the main API to the completion and plumbing system, in the form
// of an EventEmitter with the following events.
//
// options - The options hash as parsed by minimist (default: {})
//
// Examples
//
// // The binary name being completed.
// complete.on('name', function(data, done) {});
//
// // The very last word being completed, preceding the cursor tab position
// complete.on('list', function(data, done) {});
//
// Returns an instance of Complete.
function tabtab(options) {
return new Complete(options);
}