sudoblockio / tackle

Tackle is a programmable configuration language for building modular utilities, code generators, and CLIs with schema validation baked in.
Apache License 2.0
52 stars 2 forks source link

Context isn't properly preserved when calling a hook in a tackle file from a parent directory #155

Open robcxyz opened 1 year ago

robcxyz commented 1 year ago

Common situation, I want to keep all my tackle functions in a parent directory and then be able to call them anywhere within the repo. Issue is I would also want a common hooks / templates dir so will need to have some env var telling me which dir the base file is in so I can build paths based on that known reference.

Anyways, it dun broke. Seem to be all smushed up (ie calling_directory and cwd).