Commit graph

13 commits

Author SHA1 Message Date
sh0rez
0d8cf83b56
fix(render): argument formatting
Printed go internals previously, now works properly with Jsonnet representation
2020-05-13 12:30:05 +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
14e9fc8f3f
refactor(render): filewriting in render pkg 2020-05-12 15:23:24 +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
75f8e7373c
feat: make paths work 2020-05-02 22:24:18 +02:00
sh0rez
21c8ebc75f
feat: docs 2020-04-30 01:26:42 +02:00
sh0rez
6e95ea768a
feat: subpackage rendering 2020-04-30 00:47:43 +02:00
sh0rez
09e8e3ddd9
feat: builtin Jsonnet 2020-04-29 17:13:38 +02:00
sh0rez
7308eecaf3
feat: rewrite render 2020-04-29 16:39:37 +02:00
sh0rez
5fbee517fe
feat: inline package declaration
Docsonnet packages previously used to be declared in a `main.docsonnet`.
Because this file basically always contains the same, it is kinda
redundant.

To avoid that, the information from there has been inlined into the main
Jsonnet file, while the parser logic will become part of the Go
application, as embedded Jsonnet.
2020-04-28 23:40:45 +02:00
sh0rez
a63ddd1061
feat: jsonnet interface 2020-03-25 16:20:51 +01:00
sh0rez
5977373772
feat: initial commit 2020-03-22 16:47:47 +01:00