Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 60f2678

Browse files
committed
1 parent 5fabd06 commit 60f2678

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

docs/en/guide/manual-build.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,20 +280,22 @@ bin/spc extract php-src,libxml2
280280
Debug commands refer to a collection of commands that can assist in outputting some information
281281
when you use static-php-cli to build PHP or modify and enhance the static-php-cli project itself.
282282

283-
- `dev:ext-all`: output all currently supported extension names
284-
- `dev:ext-info`: Output meta information for one or more extensions
283+
- `dev:extensions`: output all currently supported extension names, or output the specified extension information
285284
- `dev:php-ver`: output the currently compiled PHP version (by reading `php_version.h`)
286-
-
285+
- `dev:sort-config`: Sort the list of configuration files in the `config/` directory in alphabetical order
287286

288287
```bash
289-
# output all extensions name
290-
bin/spc dev:ext-all
288+
# output all extensions information
289+
bin/spc dev:extensions
291290

292-
# Output multiple extended meta information
293-
bin/spc dev:ext-info mongodb,pgsql,pcntl
291+
# Output the meta information of the specified extension
292+
bin/spc dev:extensions mongodb curl openssl
294293

295294
# Output the currently compiled PHP version
296295
# You need to decompress the downloaded PHP source code to the source directory first
297296
# You can use `bin/spc extract php-src` to decompress the source code separately
298297
bin/spc dev:php-ver
298+
299+
# Sort the configuration files in the config/ directory in alphabetical order (e.g. ext.json)
300+
bin/spc dev:sort-config ext
299301
```

docs/zh/guide/manual-build.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,18 +245,20 @@ bin/spc extract php-src,libxml2
245245

246246
调试命令指的是你在使用 static-php-cli 构建 PHP 或改造、增强 static-php-cli 项目本身的时候,可以辅助输出一些信息的命令集合。
247247

248-
- `dev:ext-all`: 输出目前所有支持的扩展名称
249-
- `dev:ext-info`: 输出一个或多个扩展的元信息
248+
- `dev:extensions`: 输出目前所有支持的扩展信息,或者输出指定的扩展信息
250249
- `dev:php-ver`: 输出当前编译的 PHP 版本(通过读取 `php_version.h` 实现)
251-
- `dev:sort-config`:
250+
- `dev:sort-config`: `config/` 目录下的配置文件的列表按照字母表排序
252251

253252
```bash
254253
# 输出所有扩展
255-
bin/spc dev:ext-all
254+
bin/spc dev:extensions
256255

257-
# 输出多个扩展元信息
258-
bin/spc dev:ext-info mongodb,pgsql,pcntl
256+
# 输出指定扩展的信息
257+
bin/spc dev:extensions mongodb curl openssl
259258

260259
# 输出当前编译的 PHP 版本(需要先将下载好的 PHP 源码解压到 source 目录,你可以使用 `bin/spc extract php-src` 单独解压缩源码)
261260
bin/spc dev:php-ver
261+
262+
# 排序配置文件 ext.json(也可以排序 lib、source)
263+
bin/spc dev:sort-config ext
262264
```

0 commit comments

Comments
 (0)