diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-07 03:30:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 09:30:05 +0100 |
commit | 98fc7db47d2ae1d817ac595d7f21138678515474 (patch) | |
tree | 114e87acad78e540b8a52c69a7c8fc9da552d208 /cli/lib.rs | |
parent | c2986891f6aac87cec98232735945af756e6643f (diff) |
Fix deno types | head (#3910)
Diffstat (limited to 'cli/lib.rs')
-rw-r--r-- | cli/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/lib.rs b/cli/lib.rs index 5f98f6f67..a8a314f32 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -124,12 +124,15 @@ fn create_main_worker( } fn types_command() { - println!( + let types = format!( "{}\n{}\n{}", crate::js::DENO_NS_LIB, crate::js::SHARED_GLOBALS_LIB, crate::js::WINDOW_LIB ); + use std::io::Write; + let _r = std::io::stdout().write_all(types.as_bytes()); + // TODO(ry) Only ignore SIGPIPE. Currently ignoring all errors. } fn print_cache_info(state: &GlobalState) { |