aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-07-19 12:25:07 +0000
committermerakor <cem@ckyln.com>2021-07-19 12:25:07 +0000
commita61e707828228c11860c6573ca992ad55a379c0a (patch)
tree10f3f07b41527885567c72cfd4a8690dc86e627e
parent42d6268a40a6fe553c4291f3772ad94ccba6339e (diff)
downloadcpt-a61e707828228c11860c6573ca992ad55a379c0a.tar.gz
docs: update
FossilOrigin-Name: 5a09d7034d312982d515f96307837351ec067084fafd7973e29384dc8b44baf1
-rw-r--r--docs/cpt.texi11
-rw-r--r--docs/cpt.txt10
2 files changed, 14 insertions, 7 deletions
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
`----