MCPcopy
hub / github.com/Unitech/pm2 / show

Function show

examples/sourcemap-auto-resolve/API.js:553–560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

551 if (opts && opts.rawArgs && opts.rawArgs.indexOf('--watch') > -1) {
552 var moment = require('moment');
553 function show() {
554 process.stdout.write('\033[2J');
555 process.stdout.write('\033[0f');
556 console.log('Last refresh: ', moment().format('LTS'));
557 that.Client.executeRemote('getMonitorData', {}, function(err, list) {
558 UX.dispAsTable(list, null);
559 });
560 }
561
562 show();
563 setInterval(show, 900);

Callers 2

listMethod · 0.85
API.jsFile · 0.85

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…