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

Consider changing restriction that private fields aren't allowed in declarative hooks #151

Open robcxyz opened 1 year ago

robcxyz commented 1 year ago
gen<-:

  all_languages_>:
    - go
    - python
tackle.exceptions.MalformedFunctionFieldException: Error creating hook='gen' in file='tackle.yaml', The field all_languages_> can not be a private hook call (ie ending in '_>') as there is no situation this makes sense.

What if we want the var to be in the private context? This makes perfect sense and is a viable use case as we attempt to make the exec method less important.