slitaz-base-files diff doc/libtaz.txt @ rev 271
libtaz.sh: add _p(), title(), footer(), action(), itemize(); update doc/libtaz.sh and testsuite.sh
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon May 25 19:32:59 2015 +0300 (2015-05-25) |
parents | 29f028ec8077 |
children | cca198d5952c |
line diff
1.1 --- a/doc/libtaz.txt Thu Apr 30 02:00:25 2015 +0300 1.2 +++ b/doc/libtaz.txt Mon May 25 19:32:59 2015 +0300 1.3 @@ -29,6 +29,10 @@ 1.4 log <string> Log activity, $activity must be set 1.5 optlist <lines> Prints two-column list (of options, or functions, etc.) 1.6 longline <string> Wrap words in long terminal message 1.7 + title <string> Print localized title 1.8 + footer [<string>] Print footer 1.9 + action <string> Print action 1.10 + itemize <string> Print long line as list item (check for :-* markers) 1.11 1.12 1.13 OPTIONS 1.14 @@ -73,6 +77,15 @@ 1.15 longline $(busybox --help) 1.16 longline "$(cat /usr/share/licenses/lgpl.txt)" 1.17 1.18 + title "Summary" 1.19 + footer "$(_ 'No errors found')" 1.20 + action 'Checking settings...'; checking_settings; status 1.21 + 1.22 + itemize " - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed d\ 1.23 +o eiusmod tempor incididunt ut labore et dolore magna aliqua." 1.24 + itemize " * Ut enim ad minim veniam, quis nostrud exercitation ullamco lab\ 1.25 +oris nisi ut aliquip ex ea commodo consequat." 1.26 + 1.27 1.28 USAGE NOTES 1.29 SliTaz Base functions used from boot scripts to end user tools.