From a61e707828228c11860c6573ca992ad55a379c0a Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 19 Jul 2021 12:25:07 +0000 Subject: docs: update FossilOrigin-Name: 5a09d7034d312982d515f96307837351ec067084fafd7973e29384dc8b44baf1 --- docs/cpt.texi | 11 +++++++---- docs/cpt.txt | 10 +++++++--- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/cpt.texi b/docs/cpt.texi index 8b7bb77..b16fea7 100644 --- a/docs/cpt.texi +++ b/docs/cpt.texi @@ -1377,14 +1377,17 @@ rsync curl zlib ca-certificates bearssl This function is used to query the @ref{meta, , meta file} inside package directories. It can be used to retrieve information on a package that is otherwise irrelevant to the -package manager itself. It takes two arguments, first being the package and the -second being the key to be retrieved. If the package does not have a @samp{meta} -file or the file does not contain the requested key, the function will return -with 1. +package manager itself. It takes two arguments, first being the package (or the +full path to a package directory) and the second being the key to be retrieved. +If the package does not have a @samp{meta} file or the file does not contain the +requested key, the function will return with 1. @example $ pkg_query_meta cpt description Carbs Packaging Tools + +$ pkg_query_meta /path/to/cpt license +MIT @end example @node Concept Index diff --git a/docs/cpt.txt b/docs/cpt.txt index 78b0e6e..4e680b5 100644 --- a/docs/cpt.txt +++ b/docs/cpt.txt @@ -1282,13 +1282,17 @@ development manual for *Carbs Packaging Tools*. For development logs see This function is used to query the [meta file] inside package directories. It can be used to retrieve information on a package that is otherwise irrelevant to the package manager itself. It takes two - arguments, first being the package and the second being the key to be - retrieved. If the package does not have a `meta' file or the file does - not contain the requested key, the function will return with 1. + arguments, first being the package (or the full path to a package + directory) and the second being the key to be retrieved. If the + package does not have a `meta' file or the file does not contain the + requested key, the function will return with 1. ,---- | $ pkg_query_meta cpt description | Carbs Packaging Tools + | + | $ pkg_query_meta /path/to/cpt license + | MIT `---- -- cgit v1.2.3