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

Global Quiet? #1698

Closed
dharrigan opened this issue Oct 13, 2023 · 3 comments
Closed

Global Quiet? #1698

dharrigan opened this issue Oct 13, 2023 · 3 comments

Comments

@dharrigan
Copy link
Contributor

Hi,

Would you consider adding a global setting so that all recipes can be made quiet, then opted-out either having the prefix '@' (inversion) or [no-quiet]? Perhaps something like set quiet?

My use case is that for the majority of my recipes, I don't want to see the commands that are being run (I'm more interested in the output of the commands). If I do want to see what the recipe is, I can always just edit/cat the Justfile (or just --dump) to remind myself of the command (this happens infrequently, as normally when the recipe is added, it's already been tested that the commands do what I want them to do). Thus, I'm not interested in seeing all the commands being echoed out across all my recipes, so having a way to switch quiet on at a global level would be super handy :-)

Thank you.

-=david=-

@casey
Copy link
Owner

casey commented Oct 13, 2023

Sure, that sounds reasonable. This would also make a great first PR, for anyone interested!

@dharrigan
Copy link
Contributor Author

Thank you for the consideration.

I don't mind doing the PR - already on it :-)

-=david=-

dharrigan added a commit to dharrigan/just that referenced this issue Oct 17, 2023
This commit brings the concept of globally quiet recipes to the
Justfile. If the justfile has this setting:

set quiet-recipes

With this (implicitly true) setting, every recipe within the Justfile
will be quiet - unless the recipe has the (new) attribute of
[no-quiet-recipe].

closes casey#1698

-=david=-
dharrigan added a commit to dharrigan/just that referenced this issue Dec 24, 2023
This commit brings the concept of globally quiet recipes to the
Justfile. If the justfile has this setting:

set quiet-recipes

With this (implicitly true) setting, every recipe within the Justfile
will be quiet - unless the recipe has the (new) attribute of
[no-quiet-recipe].

closes casey#1698

-=david=-
dharrigan added a commit to dharrigan/just that referenced this issue Jan 3, 2024
This commit brings the concept of globally quiet recipes to the
Justfile. If the justfile has this setting:

set quiet-recipes

With this (implicitly true) setting, every recipe within the Justfile
will be quiet - unless the recipe has the (new) attribute of
[no-quiet-recipe].

closes casey#1698

-=david=-
dharrigan added a commit to dharrigan/just that referenced this issue Jan 3, 2024
This commit brings the concept of globally quiet recipes to the
Justfile. If the justfile has this setting:

set quiet

With this (implicitly true) setting, every recipe within the Justfile
will be quiet - unless the recipe has the (new) attribute of
[no-quiet].

closes casey#1698

-=david=-
dharrigan added a commit to dharrigan/just that referenced this issue Jan 3, 2024
This commit brings the concept of globally quiet recipes to the
Justfile. If the justfile has this setting:

set quiet

With this (implicitly true) setting, every recipe within the Justfile
will be quiet - unless the recipe has the (new) attribute of
[no-quiet].

closes casey#1698

-=david=-
dharrigan added a commit to dharrigan/just that referenced this issue Jan 3, 2024
This commit brings the concept of globally quiet recipes to the
Justfile. If the justfile has this setting:

set quiet

With this (implicitly true) setting, every recipe within the Justfile
will be quiet - unless the recipe has the (new) attribute of
[no-quiet].

closes casey#1698

-=david=-
dharrigan added a commit to dharrigan/just that referenced this issue Jan 12, 2024
This commit brings the concept of globally quiet recipes to the
Justfile. If the justfile has this setting:

set quiet

With this (implicitly true) setting, every recipe within the Justfile
will be quiet - unless the recipe has the (new) attribute of
[no-quiet].

closes casey#1698

-=david=-
dharrigan added a commit to dharrigan/just that referenced this issue Jan 12, 2024
This commit brings the concept of globally quiet recipes to the
Justfile. If the justfile has this setting:

set quiet

With this (implicitly true) setting, every recipe within the Justfile
will be quiet - unless the recipe has the (new) attribute of
[no-quiet].

closes casey#1698

-=david=-
@dharrigan
Copy link
Contributor Author

This has now been implemented. Thanks @casey for the assist in getting it in :-)

-=david=-

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

No branches or pull requests

2 participants