mottosso / be

minimal directory and environment management system for collaborative creative projects
GNU Lesser General Public License v2.1
47 stars 4 forks source link

BE_DEVELOPMENTSUFFIX #17

Open mottosso opened 9 years ago

mottosso commented 9 years ago

goal

Apply a suffix to any path for development directory.

$ be in myproject
$ pwd
/projects/myproject
$ be mkdir
"private/marcus/" created
$ be home
$ pwd
/projects/myproject/private/marcus

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.

mottosso commented 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