bibendi / dip

The dip is a CLI dev–tool that provides native-like interaction with a Dockerized application.
MIT License
1.26k stars 44 forks source link

Feature request: DIP_ROOT_DIR env var #154

Open entr opened 2 years ago

entr commented 2 years ago

This is a feature request to introduce a new env variable DIP_ROOT_DIR which gives you the absolute location of the main dip.yml.

Why this is useful?

It opens up the possibility to create dip interactions that use the root directory while being executed from a subdirectory. Our specific use-case is that we have a number of projects in subdirectories and we want an interaction that can do something like cd "$DIP_ROOT_DIR/www/$*" && dip up -d to allow us to quickly move between projects.