1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

11 Commits

Author SHA1 Message Date
abed751e96 Bind libraries backward for consistent shadowing 2019-02-26 21:57:08 -06:00
141bb78e96 Fix regression on ~/.jq being a directory 2019-02-26 21:57:08 -06:00
25d47ca08e Add streaming utilities (fix #827) 2015-06-26 20:45:06 -05:00
5108a451ca Alternative implementation of tovalues 2015-06-26 20:17:02 -05:00
c4cc62a053 Add more missing test files 2015-01-01 01:49:40 -06:00
862696a778 Add missing test file 2015-01-01 01:39:50 -06:00
ae7f8d6ab9 Further module system revamp (fix #659)
To import a module now use:

    # Import module.jq file:
    import "relative/path/to/module" as foo;

    # Use the module's defs as foo::<def-name>

To import a JSON file:

    # Read file.json:
    import "relative/path/to/file" as $foo;
    #
    # Use as $foo::foo

Using `-L` now drops the builtin library path and appends the requested
path to the empty array (or the result of an earlier `-L`).

Support for the `$JQ_LIBRARY_PATH` environment variable has been
removed.
2014-12-31 20:09:53 -06:00
559863ca68 Streaming parser torture tests 2014-12-26 23:18:07 -06:00
56ae88d9d5 Module search revamp for pkg managers
The search path listed in an import directive can now be an array.  The
top-level search path is appended.  Null and empty strings in the path
terminate any search.  The "." in "." and "./*" is replaced with the
directory containing the file doing the import (for command-line
programs this is the current directory, though that may be a bad idea).

No version numbers or anything of the sort are gratuitously added to the
search paths.

All this makes external package managers possible by allowing
dependencies to be installed local to dependents.
2014-12-24 02:31:51 -06:00
456bafa82f Drop the jq version directory from search path 2014-08-30 00:58:24 -05:00
8d2d5e37e5 Drop "any/" in module search; use 1.x-master 2014-08-20 20:48:48 -05:00