Commit graph

6 commits

Author SHA1 Message Date
sh0rez
2f9dcb2d21
feat: document plain values (#12)
* feat: document plain values

Adds `d.val` to attach type and help information to plain Jsonnet
values, apart from specially treated `fn` and `obj`.

* feat: defaults
2020-07-27 16:59:04 +02:00
sh0rez
4c6f532e05
feat(lib): fn.withArgs 2020-05-13 12:31:07 +02:00
sh0rez
66a158a8f2
feat: ignore
Implements ignoring certain keys right in Jsonnet, by adding:

  {
    '#foo': "ignore",
    foo: {}
  }

This is especially useful for objects that include `self` references,
which might otherwise recurse infinitely
2020-05-12 22:48:02 +02:00
sh0rez
f284bff4e5
feat(lib): type aliases
Adds a couple of common type aliases to make using easier
2020-05-12 15:22:46 +02:00
sh0rez
4e4d4a7170
feat: faster parser (#3)
* fix(load): support nested objects

* feat: initial golang parser

Moves most of load.libsonnet to a Golang app for hopefully much faster
parsing (fingers crossed)

* feat(fast): nested objects, subpackages

* feat: incorporate fast mode into main binary

Moves the work done in the fast directory into the main executable,
removing the Jsonnet based parser in favor of the much faster Golang one.
2020-05-10 23:09:12 +02:00
sh0rez
09e8e3ddd9
feat: builtin Jsonnet 2020-04-29 17:13:38 +02:00