Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use current directory as default workspace-folder #332

Closed
wants to merge 1 commit into from
Closed

use current directory as default workspace-folder #332

wants to merge 1 commit into from

Conversation

nikaro
Copy link

@nikaro nikaro commented Dec 20, 2022

This should probably fix #29.

@nikaro nikaro requested a review from a team as a code owner December 20, 2022 22:03
Copy link
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Left a comment.

@@ -90,7 +90,7 @@ function provisionOptions(y: Argv) {
'docker-compose-path': { type: 'string', description: 'Docker Compose CLI path.' },
'container-data-folder': { type: 'string', description: 'Container data folder where user data inside the container will be stored.' },
'container-system-data-folder': { type: 'string', description: 'Container system data folder where system data inside the container will be stored.' },
'workspace-folder': { type: 'string', description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.' },
'workspace-folder': { type: 'string', default: '.', description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should treat it the same with the other commands. Would it make sense to search for the first parent folder with a .devcontainer folder (or a .devcontainer.json file)? Similar to what git does.

Copy link
Author

@nikaro nikaro Feb 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make perfect sense, but this is out of my reach in terms of TypeScript knowledge 😅
Feel free to close this PR to let a futur contributor to may be implement this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, closing for now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why Is --workspace-folder Required. Can we default to $PWD?
2 participants