From 91315d3e7dab416d5550ccaeb4c76fb7a1be5ada Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Sat, 12 Aug 2023 12:04:27 +0100 Subject: [PATCH] Update documentation to reflect new `defs` field on `modulemeta` --- docs/content/manual/manual.yml | 3 ++- jq.1.prebuilt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index d5e625c16c..b1da59441d 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -3633,7 +3633,8 @@ sections: Takes a module name as input and outputs the module's metadata as an object, with the module's imports (including metadata) - as an array value for the `deps` key. + as an array value for the `deps` key and the module's defined + functions as an array value for the `defs` key. Programs can use this to query a module's metadata, which they could then use to, for example, search for, download, and diff --git a/jq.1.prebuilt b/jq.1.prebuilt index 99c35dbede..285d80bfe3 100644 --- a/jq.1.prebuilt +++ b/jq.1.prebuilt @@ -4011,7 +4011,7 @@ This directive is entirely optional\. It\'s not required for proper operation\. The metadata must be a constant jq expression\. It should be an object with keys like \fBhomepage\fR\. At this time jq doesn\'t use this metadata, but it is made available to users via the \fBmodulemeta\fR builtin\. . .SS "modulemeta" -Takes a module name as input and outputs the module\'s metadata as an object, with the module\'s imports (including metadata) as an array value for the \fBdeps\fR key\. +Takes a module name as input and outputs the module\'s metadata as an object, with the module\'s imports (including metadata) as an array value for the \fBdeps\fR key and the module\'s defined functions as an array value for the \fBdefs\fR key\. . .P Programs can use this to query a module\'s metadata, which they could then use to, for example, search for, download, and install missing dependencies\.