Open mottosso opened 9 years ago
This could also be part of be.yaml
, such that whenever entering an item, the suffix would get added to whichever path was formatted.
developmentsuffix: "private/{user}"
In addition, it would also enable the use of partially formatted templates.
$ be in hulk bruce model --enter
$ pwd
/projects/hulk/assets/bruce/model/private/marcus
$ be in hulk --enter
$ pwd
/projects/hulk/private/marcus
Reference
goal
Apply a suffix to any path for development directory.
motivation
At the moment, development directories are assumed to be part of the template. The problem with this is that sometimes, it's worth entering a project or task and not intend on working there. Such as when performing tasks that require the environment but not necessarily in creating new content, e.g. triggering a render, building/testing tools, debugging various behaviour.
implementation
When this environment variable is available, take it into account when creating a new development directory.