MCPcopy Create free account
hub / github.com/SamVerschueren/dev-time-cli / render

Function render

cli.js:69–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69function render() {
70 const output = [];
71
72 cli.input.forEach(user => {
73 if (cli.input.length === 1) {
74 output.push(result[user].stack ? parseError(result[user]) : result[user]);
75 return;
76 }
77
78 output.push(user);
79
80 if (result[user]) {
81 if (result[user] instanceof Error) {
82 output.push(parseError(result[user]));
83 } else {
84 output.push(` ${result[user]}`);
85 }
86 } else {
87 output.push(` ${chalk.gray.dim(frames[user]())}`);
88 }
89 });
90
91 logUpdate(output.join('\n'));
92}
93
94if (cli.input.length > 1) {
95 setInterval(render, 50);

Callers 1

cli.jsFile · 0.85

Calls 1

parseErrorFunction · 0.85

Tested by

no test coverage detected