fix libpack.md formatting

This commit is contained in:
MihailRis 2026-03-03 20:01:47 +03:00
parent 115f5b41d2
commit ef203ccbdc
2 changed files with 11 additions and 9 deletions

View file

@ -78,14 +78,14 @@ Returns the id of all base packages (non-removeable)
```lua
pack.get_info(packid: str) -> {
id: str,
title: str,
creator: str,
description: str,
version: str,
path: str,
icon: str, -- not available in headless mode
dependencies: optional strings array
id: str,
title: str,
creator: str,
description: str,
version: str,
path: str,
icon: str, -- not available in headless mode
dependencies: optional strings array
}
```
@ -95,6 +95,7 @@ Returns information about the pack (not necessarily installed).
- `!` - required
- `?` - optional
- `~` - weak
for example `!teal`
To obtain information about multiple packs, use table of ids to avoid re-scanning:one

View file

@ -82,6 +82,7 @@ pack.get_info(packid: string) -> {
- `!` - required
- `?` - optional
- `~` - weak
например `!teal`
Для получения информации о нескольких паках используйте таблицу id, чтобы не
@ -101,4 +102,4 @@ pack.assemble(packids: table<string>) -> table<string>
pack.request_writeable(packid: string, callback: function(string))
```
Запрашивает у пользователя право на модификацию пака. При подтвержении новая точка входа будет передана в callback.
Запрашивает у пользователя право на модификацию пака. При подтвержении новая точка входа будет передана в callback.