Skip to content

Make batch execution noninteractive by default#1951

Open
rolandwalker wants to merge 1 commit into
mainfrom
RW/batch-default-non-interactive
Open

Make batch execution noninteractive by default#1951
rolandwalker wants to merge 1 commit into
mainfrom
RW/batch-default-non-interactive

Conversation

@rolandwalker

Copy link
Copy Markdown
Contributor

Description

  • replace --noninteractive flag with --batch-warn, with an inverted meaning
  • when --batch-warn is set, it overrides myclirc's destructive_warning setting
  • let --execute work exactly like --batch
  • send destructive-query confirmation prompts to the standard error, since users running batch scripts will often have the standard output redirected

This is a breaking change, not least because the --noninteractive flag no longer has an effect, and disappears from the docs. But passing it causes a Click warning referring the user to --batch-warn.

Preparation for release 2.0.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

 * replace --noninteractive flag with --batch-warn, with an inverted
   meaning
 * when --batch-warn is set, it overrides myclirc's destructive_warning
   setting
 * let --execute work exactly like --batch
 * send destructive-query confirmation prompts to the standard error,
   since users running batch scripts will often have the standard
   output redirected

This is a breaking change, not least because the --noninteractive flag
no longer has an effect, and disappears from the docs.  But passing it
causes a Click warning referring the user to --batch-warn.

Preparation for release 2.0.
@rolandwalker rolandwalker self-assigned this Jun 20, 2026
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

Successfully merging this pull request may close these issues.

1 participant