@beyond-sharepoint/spo-shell
Version:
Cross-Platform Command Line Utility for SharePoint Online
28 lines (24 loc) • 502 B
JavaScript
;
const interfacer = require('./../util/interfacer');
const clear = {
exec() {
this.log('\u001b[2J\u001b[0;0H');
return 0;
}
};
module.exports = function (vorpal) {
if (vorpal === undefined) {
return clear;
}
vorpal
.command('clear')
.action(function (args, callback) {
args.options = args.options || {};
return interfacer.call(this, {
command: clear,
args,
options: args.options,
callback
});
});
};