Skip to content
Myr

Update documentation to reflect new `defs` field on `modulemeta`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alex Wilson · committed by Nico Williams · parent 65ed95c · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:docs/content/manual/manual.yml+2 added-1 removed
3631 unmodified lines
3632 body: |36333634 Takes a module name as input and outputs the module's metadata3635 as an object, with the module's imports (including metadata)3636 as an array value for the `deps` key.3636 as an array value for the `deps` key and the module's defined3637 functions as an array value for the `defs` key.36383639 Programs can use this to query a module's metadata, which they3640 could then use to, for example, search for, download, and3641 install missing dependencies.
41 unmodified lines
modified:jq.1.prebuilt+1 added-1 removed
4009 unmodified lines
4010.P4011The 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\.4012.4013.SS "modulemeta"4014Takes 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\.4014Takes 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\.4015.4016.P4017Programs can use this to query a module\'s metadata, which they could then use to, for example, search for, download, and install missing dependencies\.4018.
99 unmodified lines