Commit Graph

18 Commits

Author SHA1 Message Date
Lorenz Brun
08080da8e2 Make automatically creating output dirs an option 2018-12-12 21:01:20 +00:00
Lorenz Brun
4122e4436e Automatically create output folders 2018-12-12 21:01:20 +00:00
Marcelo Cantos
d67779ed8d Refactor handling of --{ext,tla}-* flags (#212)
* Refactor handling of --{ext,tla}-* flags

* better helper function names for --{ext,tla}-* flags
2018-03-11 16:44:59 -04:00
Dave Cunningham
5cc426ed04 Bring submodule and stdlib to cpp master 2018-03-06 23:49:02 -05:00
Marcelo Cantos
88519c3704 Apply more golint recommendations (#201)
* Apply more golint recommendations

* Update dumpstdlibast.go to include StdAst comment

* Improve dump.go package comment.
2018-02-28 01:11:18 -05:00
Cam Hutchison
d1d9a7f5f8 Convert --tla/ext-*-file to imports
Instead of reading the files directly for --tla/ext-*-file, just add a
code snippet that does an import or importstr.

This makes relative imports work when the code-file path is not in the
current directory. It also makes the import lazy so if the arg/var is
not referenced, the file does not have to exist.

Fixes: google/jsonnet#452
2018-01-30 18:22:29 -05:00
Stanisław Barzowski
4406074d47 Add support for memory profiling 2018-01-27 18:44:54 -05:00
Yewei Huang
561a986e8e Remove unnecessary type alias in jsonnet/cmd.go 2018-01-15 21:10:31 -05:00
Dave Cunningham
3481c9c698 Add JSONNET_PATH (go version) 2017-12-13 18:09:32 -05:00
Daniel Theophanes
691e8d4f3c Remove unused dependencies
The imports in "_gen.go" were not used, compiled, or
apparently useful so remove.

The color field in the ErrorFormatter was never set
to true and never used. This brought in many unused
dependencies including x/sys/unix that aren't ever
used. Move the color dependencies to the jsonnet main
package and set the colorized output there. Turn the
exported ErrorFormatter into an interface. In the future
it could be used to export JSON or HTML output.

Fixes google/go-jsonnet#131
2017-12-12 00:05:28 -05:00
Cam Hutchison
219d970ba0 jsonnet: Fix --output-file command line option
The long option --output-file was not working, due to what looks like a
cut and paste error, leaving --exec as the string to test for.
2017-12-08 15:34:11 -05:00
Liang Mingqiang
395102359b fix go vet error (#151) 2017-11-10 09:53:40 -05:00
Dave Cunningham
c60056c75f
Feature-complete commandline interface (#138)
* Feature-complete commandline interface
* Make errors match cpp implementation
2017-11-03 22:00:30 -04:00
Dave Cunningham
f965f9ee04
For compatability, emit the \n within the library, not the cmd (#137)
* For compatability, emit the \n within the library, not the commandline tool
* Also add manifestString to library
2017-10-29 21:41:01 -04:00
Stanisław Barzowski
2db3d1c3cc TLA support 2017-10-12 20:00:45 -04:00
Stanisław Barzowski
8b843564bf Support --ext-str and --ext-code options 2017-10-03 14:31:53 -04:00
Stanisław Barzowski
0c86c9e109 Support of +:, in, in super
Also profiling
2017-09-28 22:21:46 -04:00
Stanisław Barzowski
370534ccc4 Basic commandline (so we can start testing compatibility) 2017-08-08 14:30:44 -04:00