INNER CODE UNIT · TypeScript
duration
yume-chan/ya-webadb · apps/cli/src/index.ts:205
const duration = Date.now() - start;
console.log(
`${source}: 1 file pushed, 0 skipped. ${((result.bytesWritten / duration) * 1000).toFixed(1)} B/s (${result.bytesWritten} bytes in ${(duration / 1000).toFixed(3)}s) `,
);
const timeout = setTimeout(() => {
dump({ fullStacks: true });
}, 1500);
timeout.unref();
},
);
program
.commandsGroup("shell:")
.command("shell [args...]")
.usage("[options] [-- <args...>]")
.description(
"run remote shell command (interactive shell if no command given). `--` is required before command name.",
)