Commit graph

15 commits

Author SHA1 Message Date
894f3a5b2a
feat: add extcode flag 2023-03-03 16:53:03 +01:00
Jeroen Op 't Eynde
794fed0c46
fix(pkg): lint errors (#32) 2022-10-24 09:08:51 +02:00
Jeroen Op 't Eynde
ee3cb6711f
fix(load): idempotency (#23) 2021-06-17 13:16:55 +02:00
Jeroen Op 't Eynde
5776ff829f
feat: render directory structure instead of flat file names (#20)
* feat: render directory structure instead of flat file names

* add gitignore
2021-06-04 15:33:41 +02:00
Jeroen Op 't Eynde
1f8d4c6fbf
feat: containerize (#19)
* feat: containerize

* Stripping reduces binary size, fully static linking makes the binary more portable

Co-authored-by: sh0rez <me@shorez.de>
2021-06-03 14:58:12 +02:00
sh0rez
3e1757637e
feat(eval): handle fully qualified imports
Now also supports github.com/sh0rez/docsonnet/doc-util

Fixes #4
2020-08-17 09:27:22 +02:00
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
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
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
6e95ea768a
feat: subpackage rendering 2020-04-30 00:47:43 +02:00
sh0rez
7308eecaf3
feat: rewrite render 2020-04-29 16:39:37 +02:00