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

Path Tracking #244

Open robcxyz opened 10 months ago

robcxyz commented 10 months ago

Path Tracking

Modify how paths are tracked and made available through special variables.

Overview

There is some ambiguity about what the current directory is. Current logic is

Right now it is not clear what the current path / calling path actually is. This proposal will fix that.

Solution

Plan is to create a new path object and which stores all the path related data.

Variables:

Schema

Situations

Point is we have 2 situations,

  1. When calling a local file / provider in the current or parent directory
  1. When calling a remote provider