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

Hook Methods #239

Open robcxyz opened 8 months ago

robcxyz commented 8 months ago

Hook Methods

Allow creating hooks within hooks that act like methods with parameter inheritance.

Overview

Right now the order of operations for how to run and access a hook method is all messed up and needs to be rebuilt. Current there are two places where methods can be called, 1, within a tackle file and 2, from command line. Ideally they should be converged.

Old Implmentation

Within tackle file

Flow

As arg / kwarg / flag parser

Flow

Issues

Current Functions

New Implementation

Flow