commit 7ef15fca20de97d189fea7ae89ebaced76a8a398 parent d1476b21decdac7b91e4fe7ca54aa0666681bc52 Author: Cem Keylan <cem@ckyln.com> Date: Thu, 4 Feb 2021 12:15:55 +0300 docs: update Diffstat:
M | docs/cpt.org | | | 15 | ++++++++++++++- |
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/docs/cpt.org b/docs/cpt.org @@ -1056,7 +1056,20 @@ if it fails. :DESCRIPTION: Query package locations :END: -=pkg_find()= +=pkg_find()= is the tool for searching packages. It accepts up to 3 arguments. + +- $1: Query :: This is the only mandatory argument. It accepts globbing, meaning + that shell wildcards can be used in the query. +- $2: Match :: If this exists =pkg_find()= will print every single match found + in the search path. If it doesn't, =pkg_find()= will print the first match and + exit. +- $3: Type :: This is the argument to be passed to the =test= function. Unless + this argument is given, it defaults to =-d=, which tests for directories. + +#+begin_src sh +pkg_find cpt +#+end_src + *** TODO =pkg_gentree= :PROPERTIES: