devcontainers / devcontainers/cli

Dev Container Features: Taking User Input in PostCreateCommand

未关闭
#520 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature-request
主要语言
TypeScript
星标
3k
派生
457
平均合并
13 小时 17 分钟
30 天内合并 PR
6

描述

We're hosting our own internal dev container images and features, and it works great (good job!). However, there are some custom features we're making that require user input, and we're seeing some odd behavior.

First things first, is taking user input during the PostCreateCommand a supported operation? Is there any reason our bash scripts can't perform `read` during that step?

The behavior that we're seeing is when two separate features perform `read` in their PostCreateCommand script. The first feature works great and the user input is successfully processed. However, the second feature's `read` will always immediately exit when the user starts typing. This happens even if we flush the input buffer ahead of time.

Any ideas?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。