progrium / envy

Lightweight dev environments with a twist
MIT License
321 stars 21 forks source link

list environments #34

Closed jgallen23 closed 9 years ago

jgallen23 commented 9 years ago

I'm trying to add support to list environments for the current user and I was thinking of adding an envy-ls command here: https://github.com/progrium/envy/blob/master/scripts/enterenv#L54. I've got it listing out the environments, but it restarts the container on every run. Any way for me to bypass that? Also, where is the code to execute that function when something exits with a 128 status?

progrium commented 9 years ago

Yeah this is what the envy command was going to be for. Probably going to restructure stuff as well.

jgallen23 commented 9 years ago

if you want to outline what you are thinking, I can take a stab at a pull request

progrium commented 9 years ago

The 0.1.0 branch with a PR into master has some good examples of making commands. This command would be envy environ ls and would just like names of directories under the user's environs directory. Probably needs to some helpers in util to make it simpler.