ember-cli / ember-cli/ember-cli-update

--to flag still prompting for user interaction

Open
#1,148 5 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
279
Forks
44
PR merge metrics
No merged PRs in 30d

Description

When we run a command using the `--to` flag (e.g. `ember-cli-update --to 3.26.1`), the output still prompts to ask which version we want:

```
? Blueprint updates have been found. Which one would you like to update? addon,
current: 3.20.0, latest: 3.27.0
```

Hitting enter a couple times moves past this prompt and produces the expected behavior (that is, it updates to the target version and not, say, latest), but I would expect that providing the `--to` option for `ember-cli-update` would preempt the need to ask the user this question. This becomes particularly important when attempting to use `ember-cli-update` as a codemod across multiple projects at the same time, or via an automated job. We want to be able to provide all the necessary information when the command is invoked, so that no process gets blocked on waiting for interaction with a user prompt.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with `ember-cli-update --to 3.26.1` and trace the code path that displays the Blueprint updates prompt. Verify that supplying `--to` avoids interactive selection while still updating to the requested target version, including when invoked in an automated job.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.