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

--to flag still prompting for user interaction

Đang mở
#1,148 5 bình luận 5 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
279
Fork
44
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Tái hiện sự cố bằng `ember-cli-update --to 3.26.1` và lần theo đường dẫn mã hiển thị lời nhắc cập nhật Blueprint. Xác minh rằng việc cung cấp `--to` sẽ tránh lựa chọn tương tác nhưng vẫn cập nhật lên phiên bản đích được yêu cầu, kể cả khi được gọi trong một job tự động hóa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript
Lĩnh vực
cli, tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.