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
53 stars 2 forks source link

Rethink default path #139

Open robcxyz opened 1 year ago

robcxyz commented 1 year ago

The default path when callling a provider should be rethought. All is fine when you are calling a provider locally but things are ambiguous when one callls a remote provider. In this case the working directory is inside the providers dir (ie ~/.config/tackle/providers/<>/<>) which almost all the time is undesirable.

Problem is that providers in general should not be mutated. When creating a provider, one expects to have all the files / directories you are operating against local to the calling directory except for things like generate / copy where the input should be local to the provider.

Hooks that expect to be called from local provider: