diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-27 15:40:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 15:40:47 +0200 |
commit | 8e9ab9e33ea2c972762cc345c584391c37731b33 (patch) | |
tree | 2513e3c35dd28095a4581db48ad5bae855a6e00c /cli/doc/namespace.rs | |
parent | 8e4333fd99bdc71020c4e2d135da8315f94d9763 (diff) |
refactor: decouple Console implementation from stdout (#4899)
When creating a console instance, one must pass "printFunc" arg
which is used internally by Console to output messages.
Due to numerous refactors there was a single method ("console.clear()")
that used "Deno.stdout" instead of "printFunc".
This commit unifies how "Console" outpus message, by using
"printFunc" in all methods; consequently "Deno.stdout" is no longer
imported in "cli/js/console.ts" making it a standalone module that doesn't
depend on any CLI-specific APIs.
Diffstat (limited to 'cli/doc/namespace.rs')
0 files changed, 0 insertions, 0 deletions