安装包含本地参考和全部已发布模式的完整包。
install tomltoml含有 host 的 [database] 表可通过 database.host 访问。解析器面向常见主机配置;复杂
toml <file> [key|options] · toml dump <file>toml <file>显示
toml <file> <key>显示一个精确的点路径
toml dump <file>显示规范化的
-f <text|mask> [-k|-v]在键或值中查找匹配项;* 和 ? 表示掩码
-w <key> : <value>直接把值写入文件
-w <key> < <file>写入从另一个文件读取的值
-d <key>按点路径删除值
-c验证
先运行 database.host 读取具体值。-f 搜索键路径和内容,-k 只搜键,-v 只搜值。普通文本不区分大小写,* 和 ? 表示整项通配模式。-c 检查格式,dump 显示重新生成的文本。
-w <key> : <value> 会立即保存,-w <key> < <file> 从其他文件读取值,-d <key> 删除路径。数字和 true/false 可能被识别为特定数据类型,写入前应备份。$ 指向 Core 最近打开的文件;只输入文件名也可能调用已注册的处理器。
支持常见节、字符串、数字、布尔值及 JSON 风格的数组;不支持
可直接在页面中运行预先准备的示例。结果已预先生成并在浏览器中显示;服务器不会执行任何终端命令。
安装当前兼容版本。完整功能请选择 Base,精简包请选择 Minimum;已安装模块的更新请使用 upgrade。
Base 与 Minimum 是同一当前模块版本的两个包。
安装包含本地参考和全部已发布模式的完整包。
install toml安装精简包。该包不包含本地参考;
install toml -m安装这个确切的已发布版本。
install toml -v 1.1.6让 upgrade 检查兼容性,仅在需要时替换已安装块。
upgrade toml删除扩展块,不影响核心和其他模块。
install toml -u示例可复制,但网站不会执行。请先检查路径、权限和破坏性选项。
cd \sandbox\config | toml app.tomlapplication.name lil-shop
application.debug true
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml config/app.tomlapplication.name lil-shop
application.debug true
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml config/app.toml database.hostlocalhosttoml config/app.toml database.options.0utf8mb4toml config/app.toml -f "database.*" -kdatabase.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml config/app.toml -f "strict" -vdatabase.options.1 stricttoml config/app.toml -f "debug"application.debug truetoml config/app.toml -w database.port : 3307database.port 3307toml config/app.toml -w application.name < config/plain-value.txtapplication.name demo-sitetoml config/app.toml -d application.debugapplication.name lil-shop
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml config/app.toml -cValid TOMLtoml dump config/app.toml[application]
name = "lil-shop"
debug = true
[database]
host = "localhost"
port = 3306
options = ["utf8mb4","strict"]toml config/app.toml unknown.keyPath not foundtoml config/invalid.toml -cDuplicate TOML keytoml config/missing.tomlFile not foundtoml config/app.toml -w database.portValue required after : or sandbox/config/app.toml该示例使用受保护的 /sandbox/ 文档工作区中的文件或目录。
[application]
name = "lil-shop"
debug = true
[database]
host = "localhost"
port = 3306
options = ["utf8mb4", "strict"]