Skip to content

fix(run): respect quiet/yes flags and handle prompt arguments#739

Merged
sorrycc merged 2 commits intoneovateai:masterfrom
kamusis:fix/run-command-interactivity
Feb 4, 2026
Merged

fix(run): respect quiet/yes flags and handle prompt arguments#739
sorrycc merged 2 commits intoneovateai:masterfrom
kamusis:fix/run-command-interactivity

Conversation

@kamusis
Copy link
Contributor

@kamusis kamusis commented Feb 3, 2026

Description

Fixed issue #738 where the run command ignored the -q/--quiet flag and remained interactive. Additionally fixed a bug where prompt arguments (e.g., neovate run "show disk usage") were being ignored and the tool would directly enter the interactive loop.

Changes

  • Updated runRun to parse quiet, yes, and y flags.
  • Support -y/--yes as an alias for non-interactive execution.
  • Extracted initial prompt from CLI arguments.
  • Implemented single-shot execution logic for quiet/yes mode.
  • In interactive mode, if a prompt is provided, skip the initial interactive prompt and proceed to generation/confirmation.
  • Added a newline after confirmation for better UI.

Fixes #738

- Support -q/--quiet and -y/--yes flags for non-interactive execution
- Handle prompt arguments in both quiet and interactive modes
- Skip initial interactive prompt if prompt is provided via CLI
- Add newline after confirmation for better UI
const confirmed = await confirmCommand(rl, result.command);
if (!confirmed) continue;

process.stdout.write('\n'); // Add newline after confirmation input
Copy link
Member

Choose a reason for hiding this comment

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

don't add this, no newline after confirm is by design.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

don't add this, no newline after confirm is by design.

fixed

@sorrycc sorrycc merged commit b69c27c into neovateai:master Feb 4, 2026
4 checks passed
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.

[Bug]: 'run' command ignores '-q/--quiet' flag and remains interactive

2 participants