devcontainers / devcontainers/cli

Proposal: Add `devcontainers init` command similar to `devcontainerize`

Đang mở
#890 3 bình luận 2 reaction 0 người được giao Xem trên GitHub
feature-request
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

Hello devcontainers team,

I've recently created a tool called `devcontainerize` (https://www.npmjs.com/package/devcontainerize, https://github.com/mathdroid/devcontainerize) that automatically detects a project's type and sets up the appropriate devcontainer configuration.

The tool:
1. Detects the project type based on files in the current directory.
2. Fetches appropriate Dockerfile and devcontainer.json from the devcontainers/images repository.
3. Creates a .devcontainer directory with these files.
4. Optionally adds .devcontainer to .gitignore if in a Git repository.

I believe a similar functionality could be valuable as part of the official devcontainers CLI, potentially as a `devcontainers init` command.

I'm keen to contribute this functionality to the official CLI if the team is interested. This could help streamline the process of setting up devcontainers for various project types and improve the overall developer experience.

Would you be open to discussing this further? I'd be happy to provide more details about the implementation or discuss how we could adapt it to fit within the existing CLI structure.

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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.