elsaland / elsa

❄️ Elsa is a minimal runtime for JavaScript and TypeScript written in Go
MIT License
2.8k stars 62 forks source link

Fix logs format #65

Closed layderv closed 4 years ago

layderv commented 4 years ago

Running your hello world in your README the first time,

> cat hello.ts
import { hello } from "https://x.nest.land/arweave-hello@0.0.2/mod.ts";

hello("Elsa");

> elsa run hello.ts
Hello, Elsa

The output is:

Downloading: https://x.nest.land/arweave-hello@0.0.2/mod.ts => /tmp/x.nest.land/arweave-hello@0.0.2/mod.ts%!(EXTRA []interface {}=[])Hi Elsa!

This PR fixes the call with the format string and adds a newline to the log. Output:

Downloading: https://x.nest.land/arweave-hello@0.0.2/mod.ts => /tmp/x.nest.land/arweave-hello@0.0.2/mod.ts Hi Elsa!