diff options
| author | ruki <[email protected]> | 2026-03-30 23:51:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-30 23:51:59 +0800 |
| commit | 701d59c83a64bf5aa73f2bc386a0cdba087349c4 (patch) | |
| tree | 85de317c9904b4aa9e818cbef5615ed2cfad28be /xmake/modules/utils/progress.lua | |
| parent | e23dc968df5fa84e24e98a7fff903e40a12d6624 (diff) | |
update more comments
Diffstat (limited to 'xmake/modules/utils/progress.lua')
| -rw-r--r-- | xmake/modules/utils/progress.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua index 3e7598ac2..8d7ab53f3 100644 --- a/xmake/modules/utils/progress.lua +++ b/xmake/modules/utils/progress.lua @@ -383,7 +383,12 @@ function set_target(progress, target) end end --- show the message with progress +-- show the message with progress indicator +-- +-- @param progress the progress value (0 ~ 100) +-- @param format the format string with color markup +-- @param ... the format arguments +-- function show(progress, format, ...) local target_prefix = _get_target_name_prefix(progress) if target_prefix then @@ -403,8 +408,11 @@ function show(progress, format, ...) end end --- print additional output logs with colors outside the progress log area, such as warning logs. --- it's used when the progress style is multirow/singlerow refresh. +-- print additional output logs outside the progress area (for warnings, etc.) +-- +-- @param format the format string with color markup +-- @param ... the format arguments +-- function show_output(format, ...) local refresh_mode = _g.refresh_mode if refresh_mode == "singlerow" then |
