Skip to content

Conversation

@kejadlen
Copy link
Collaborator

Adds a --yolo flag to 'scope doctor run' that automatically approves all fix confirmation prompts without user interaction. This is useful for CI/CD pipelines or scripted environments where manual confirmation is not possible.

));
action_span.pb_set_style(&progress_bar_without_pos());

let prompt_fn = if self.yolo { auto_approve } else { prompt_user };
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️ Easy peezy. Like it.

}

fn auto_approve(_prompt_text: &str, _maybe_help_text: &Option<String>) -> bool {
true
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering if it is worth while to write the context of the prompt and help text with an additional log that it's being automatically applied.

I can't quite picture in my head what the user experience or backend traces look like.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think that makes sense - will do that

@kejadlen kejadlen force-pushed the push-pluupusryslz branch 3 times, most recently from eab4a66 to 35bd5e0 Compare December 17, 2025 20:16
Adds a --yolo flag to 'scope doctor run' that automatically approves
all fix confirmation prompts without user interaction. This is useful
for CI/CD pipelines or scripted environments where manual confirmation
is not possible.
@rubberduck203 rubberduck203 merged commit bc9e2e3 into oscope-dev:main Dec 17, 2025
14 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.

2 participants