Doom-emacs: [REQUEST] Add a switch to bypass all prompts on 'doom upgrade'

Created on 22 Dec 2019  路  5Comments  路  Source: hlissner/doom-emacs

Maybe something like doom upgrade --yes.

new bidoom resolved

Most helpful comment

As of f6852a2 the doom upgrade command now has a --discard switch, which will automatically select the options that discard local changes (private packages with a :local-repo will be skipped).

This should technically resolve the issue. Please update and let me know if that isn't the case.

All 5 comments

Sadly, this isn't technically feasible at the moment. It already took a few hacks to get straight to prompt at all (before, it would simply fail with an error, preventing folks from updating at all).

And these aren't simple yes/no confirmation prompts. There are different questions and different sets of answers depending on the problem. How a --yes would map to any of these choices is unclear. Perhaps we'll need a slew of new switches. I'll look into it when I can.

I see. On another note, having a switch to bypass certain things would also be good. For example --nodiff to not ask for confirmation to view the diff, and just say no.

To clarify, I'm talking about the prompts emitted by straight, like this one:

image

If you are talking about the "See the diff between your current version of Doom and latest version in your browser? Yes/No" and "Upgrade Doom? Yes/No" prompts, then a --yes switch already exists: doom --yes upgrade (i.e. it responds 'no' to the first and 'yes' to the second).

Oh. Will I'll leave this up because the other thing is still an issue.

As of f6852a2 the doom upgrade command now has a --discard switch, which will automatically select the options that discard local changes (private packages with a :local-repo will be skipped).

This should technically resolve the issue. Please update and let me know if that isn't the case.

Was this page helpful?
0 / 5 - 0 ratings