Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make quiet even more quiet #139

Closed
x80486 opened this issue Oct 16, 2021 · 5 comments
Closed

Make quiet even more quiet #139

x80486 opened this issue Oct 16, 2021 · 5 comments

Comments

@x80486
Copy link

x80486 commented Oct 16, 2021

I'm running Arch Linux, Deno 1.15.1, and Lume v1.1.1:

[x80486@uplink:~/lume-template]$ uname -a 
Linux uplink 5.10.72-1-lts #1 SMP Sat, 09 Oct 2021 17:34:39 +0000 x86_64 GNU/Linux
[x80486@uplink:~/lume-template]$ deno --version 
deno 1.15.1 (release, x86_64-unknown-linux-gnu)
v8 9.5.172.19
typescript 4.4.2
[x80486@uplink:~/lume-template]$ lume --version 
v1.1.1

I'm building a sample project with lume --quiet, but still, there is a lot of output in the console:

[x80486@uplink:~/lume-template]$ lume --quiet 
Download https://deno.land/x/lume@v1.1.1/cli.ts
Download https://deno.land/x/lume@v1.1.1/cli/build.ts
Download https://deno.land/x/lume@v1.1.1/cli/init.ts
Download https://deno.land/x/lume@v1.1.1/cli/run.ts
Download https://deno.land/x/lume@v1.1.1/cli/upgrade.ts
Download https://deno.land/x/lume@v1.1.1/cli/utils.ts
Download https://deno.land/x/lume@v1.1.1/deps/cliffy.ts
Download https://deno.land/x/lume@v1.1.1/core/utils.ts
Download https://deno.land/x/lume@v1.1.1/deps/colors.ts
Download https://deno.land/x/lume@v1.1.1/cli/serve.ts
... many many more!

I'm assuming that with --quiet Lume will only show warnings and/or errors, which is what I'm expecting with this. So is it possible to make --quiet to remove those Download ... statements as well?

@oscarotero
Copy link
Member

This is from Deno and is shown only the first time Lume is executed. Then, these modules are cached by Deno so these messages won't be shown anymore.

@x80486
Copy link
Author

x80486 commented Oct 16, 2021

This one is more towards CI/CD workflows, where all that output is not really needed...but if they come Deno, it's going to be tricky to "mute" them. Not sure if Deno has anything for that 🤔

@oscarotero
Copy link
Member

oscarotero commented Oct 17, 2021

I think Deno has a --quiet option too, so it could be added here: https://github.com/lumeland/lume/blob/master/ci.ts#L19

@x80486
Copy link
Author

x80486 commented Oct 17, 2021

That would be great — provided it doesn't eat any real error(s) and/or warning(s).

oscarotero added a commit that referenced this issue Oct 17, 2021
@oscarotero
Copy link
Member

I just made a commit to this. It will be available in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants