安装包含本地参考和全部已发布模式的完整包。
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验证
在当前 core 中,成功打开的文件会立即可通过 $ 再次引用。如果此模块是该扩展名已安装的最高优先级处理器,只输入文件名即可由此命令打开。这些是 core 提供的便捷机制;
-f 同时搜索路径和值。仅搜索键时加 -k,仅搜索值时加 -v。包含 * 或 ? 的查询按掩码处理。
-w 会立即写入文件。: 后直接给出值;< <file> 从另一个文件读取值。-d 删除一个点路径。
该模块有意只实现共享主机中常用的配置格式子集。高级格式特性应使用 edit 或 code 按文本编辑,避免静默地重新解释。
可直接在页面中运行预先准备的示例。结果已预先生成并在浏览器中显示;服务器不会执行任何终端命令。
安装当前兼容版本。完整功能请选择 Base,精简包请选择 Minimum;已安装模块的更新请使用 upgrade。
Base 与 Minimum 是同一当前模块版本的两个包。
安装包含本地参考和全部已发布模式的完整包。
install toml安装精简包。该包不包含本地参考;
install toml -m安装这个确切的已发布版本。
install toml -v 1.1.5让 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 strictapp.tomlapplication.name lil-shop
application.debug true
database.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml $ database.hostlocalhosttoml $ -f "database*" -kdatabase.host localhost
database.port 3306
database.options.0 utf8mb4
database.options.1 stricttoml $ -f "strict" -vdatabase.options.1 stricttoml $ -w database.port : 3307database.port 3307toml $ -d database.portdatabase.host localhosttoml $ -cValid TOMLtoml dump $[application]
name = "lil-shop"
debug = true
[database]
host = "localhost"
port = 3306toml \sandbox\config\missing.toml未找到文件sandbox/config/app.toml该示例使用受保护的 /sandbox/ 文档工作区中的文件或目录。
[application]
name = "lil-shop"
debug = true
[database]
host = "localhost"
port = 3306
options = ["utf8mb4", "strict"]