cli / cli

GitHub’s official command line tool
https://cli.github.com
MIT License
37.36k stars 5.83k forks source link

Support for devcontainer.json Files Outside of Repository with `gh cs create --devcontainer-path` #9260

Open shinychimra07 opened 4 months ago

shinychimra07 commented 4 months ago

Describe the feature or problem you’d like to solve

Currently, the gh cs create --devcontainer-path command is designed to work with devcontainer.json files that are located within the repository(https://github.com/cli/cli/blob/0f2e1ed9d19f73d20eb0dd124f4b5cba3111f2e9/pkg/cmd/codespace/create.go#L229). However, there are use cases where it would be beneficial to support devcontainer.json files located outside of the repository directory.

This feature would enable greater flexibility and convenience, especially in scenarios where:

Proposed solution

Enhance the gh cs create --devcontainer-path command to accept a path to a devcontainer.json file located outside of the repository directory. This could involve:

How will it benefit CLI and its users?

shinychimra07 commented 4 months ago

CC: @craiglpeters @nithinmichael