From f603dd5b4139cc1e7b2127eb1b9fcfe82d5176ba Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 24 Mar 2021 05:22:12 +0000 Subject: docs: update FossilOrigin-Name: 1830ef7f1ff3b725999ac81b9123fb7bf0c00ab3b6f82a0027bc24f87e04ba67 --- docs/cpt.txt | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'docs/cpt.txt') diff --git a/docs/cpt.txt b/docs/cpt.txt index aec19d1..201dfd4 100644 --- a/docs/cpt.txt +++ b/docs/cpt.txt @@ -982,22 +982,22 @@ development manual for *Carbs Packaging Tools*. For development logs see 8.6 System Functions ~~~~~~~~~~~~~~~~~~~~ - - [ ] Add description - - 8.6.1 `as_root()' ----------------- `as_root()' calls the rest of the arguments as a different - user. Unless a `user' environment variable is set, it will call the + user. Unless a `$user' environment variable is set, it will call the following arguments as the root user. It supports the following programs for privilege escalation with the following order: - 1. `sls' + 1. `ssu' 2. `sudo' 3. `doas' 4. `su' + The program called for this operation can be overridden using the + `$CPT_SU' variable. + 8.7 Package Functions ~~~~~~~~~~~~~~~~~~~~~ @@ -1063,7 +1063,17 @@ development manual for *Carbs Packaging Tools*. For development logs see directories. ,---- + | # Returns the first match of cpt | pkg_find cpt + | + | # Returns all matches of cpt + | pkg_find cpt all + | + | # Returns all globbed matches for cpt* (e.g. cpt and cpt-extra) + | pkg_find 'cpt*' all + | + | # Returns all matching cpt-* executables on user's PATH + | SEARCH_PATH=$PATH pkg_find 'cpt-*' all -x `---- -- cgit v1.2.3