Comments (9)
Even more confusing is the devcontainer build [path] which still require --workspace-folder, seems like a bug, either path or workspace-folder but not both please.
from cli.
Hi 👋
Thanks for all the suggestions, and growing interest on this issue. We agree that the cli
should have --workspace-folder
option as optional and should default to .
(ie pwd). We should be able to pick this up soon.
from cli.
Having to type --workspace-folder .
all the time is crazy annoying. Please default to $PWD.
from cli.
I'd suggest not to add the environment variable support unless someone asks.
from cli.
I added this function to my .zshrc
, which does not solve the problem, but reduces the pain:
function dev() {
devcontainer $1 --workspace-folder . ${@: 2}
}
Now I can just call dev up
or dev exec ls
Maybe it helps someone while the Issue exists.
from cli.
Having to type
--workspace-folder .
all the time is crazy annoying. Please default to $PWD.
And add support to specify using an ENV variable as well, DEVCONTAINER_WORKSPACE_FOLDER or whatever.
from cli.
I've created a PR for this.
from cli.
I've created a PR #425, with a basic check if a .devcontainer
directory exists in your cwd
. I would be pretty easy to add an ENV variable to it, by adding it to the findWorkspaceFolder
Function.
@hpe-ykoehler Currently, I'm not convinced if an ENV variable is needed. Do you have a use case for that?
from cli.
@MunsMan no, but convention is that config option can be controlled by cli argument, env or config file in that order of priority. Agree env may appears less useful, but devcontainer should use a CLI framework that handles all those details (such as Cobra if written in Go) no?
from cli.
Related Issues (20)
- Container name doesn't take into account the id-label HOT 1
- Print build logs even if the feature build is successful HOT 1
- Podman error: could not find a working conmon binary
- devcontainer exec attempts confuses args depending on order HOT 2
- Suggestion about findComposeContainer HOT 2
- X HOT 1
- Question - Publishing OCI Artifacts - Should the layer be compressed? HOT 1
- Usage of --id-label yields hanging process HOT 2
- workspaceMount support --volumes-from HOT 8
- Sessions with progress bars cause "RangeError: Invalid string length" HOT 1
- How to customize the name of the container? HOT 2
- Docker compose profile specification HOT 2
- Dev container based on compose file does not start up from WSL. HOT 3
- Reproducible builds HOT 2
- Add support for Dockerfile using a variable within their FROM line, today it fails due to usage of docker inspect not handling the ARG HOT 4
- httpOci gives '401 on reattempt after auth: https://registry.gitlab.com/' HOT 10
- Fix version sorting and report major version in `outdated` HOT 1
- The `devcontainer templates apply` command hangs HOT 5
- Devcontainer error HOT 1
- dotfiles install command cannot process tilde character
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.