devcontainers / devcontainers/cli

Dev Container Features: Taking User Input in PostCreateCommand

オープン
#520 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature-request
主要言語
TypeScript
スター
3k
フォーク
457
平均マージ
13時間 17分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。