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

maintainers/scripts/update: support skipping prompts #319860

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

superherointj
Copy link
Contributor

@superherointj superherointj commented Jun 14, 2024

maintainers/scripts/update.py: support skipping prompts

Useful for not having to press ENTER for continuing execution.

To test:

nix-shell maintainers/scripts/update.nix --argstr package bicep --argstr skip-prompt true

Found a new solution that works:

yes '' | nix-shell maintainers/scripts/update.nix --argstr package bicep

This clever solution might not be obvious to everyone. The argument is obvious.

Copy link
Member

@ulrikstrid ulrikstrid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an area of the repo I'm super familiar with but the change looks reasonable

@superherointj superherointj merged commit 61ff097 into NixOS:master Jul 12, 2024
36 checks passed
@superherointj superherointj deleted the update-script-skip-prompt branch July 12, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants