nfra/ctool

使用模板更新配置文件的脚本

v1.3.1 2020-09-15 20:48 UTC

This package is auto-updated.

Last update: 2024-09-16 05:42:17 UTC


README

一个命令行实用工具,使用模板轻松配置容器。

ctool --autoload /opt/bootstrap.php 

TL;DR

安装

composer require -g nfra/ctool

编写配置文件

只需将配置文件放置在正确的文件夹中,并追加扩展名 .php

在文件中,您可以按照您想要的任何方式生成输出

\Phore\CloudTool\CloudToolTemplate::Get()->setOnChangeAction();