ditrit / OGrEE-CLI

CLI for OGrEE
Mozilla Public License 2.0
3 stars 0 forks source link

config.toml instead of .env #155

Closed GeremWD closed 1 year ago

GeremWD commented 1 year ago

The json should allow to predefine variables, for example this way :

{
  apiKey:"truc",
  apiURL:"bidule",
  variables: [
    {name:"ROOT", value:"D:/Nextcloud.ditrit.io/Ogree"},
    {name:"CUST", value:"${ROOT}/4_customers/__BNPP__/"},
    {name:"3DMODELS", value:"${ROOT}/0_modeles3D/"},
  ],
}

The choice of an array rather than a map for the variables is because the order of the declarations matter, as variables can reference each others.