add pack.get_info(table) overload

This commit is contained in:
MihailRis
2025-01-02 00:11:09 +03:00
parent c427501897
commit af592b6e7d
3 changed files with 58 additions and 2 deletions
+6
View File
@@ -95,3 +95,9 @@ Returns information about the pack (not necessarily installed).
- `?` - optional
- `~` - weak
for example `!teal`
To obtain information about multiple packs, use table of ids to avoid re-scanning.
```lua
pack.get_info(packids: table) -> {id={...}, id2={...}, ...}
```
+8 -1
View File
@@ -63,7 +63,7 @@ pack.get_base_packs() -> массив строк
Возвращает id всех базовых паков (неудаляемых)
```python
```lua
pack.get_info(packid: str) -> {
id: str,
title: str,
@@ -82,3 +82,10 @@ pack.get_info(packid: str) -> {
- `?` - optional
- `~` - weak
например `!teal`
Для получения информации о нескольких паках используйте таблицу id, чтобы не
производить сканирование для каждого пака.
```lua
pack.get_info(packids: table) -> {id={...}, id2={...}, ...}
```