php apigen,php – 如何在Apigen中排除多个文件夹?

使用终端,我想你可以这样做:

php apigen.phar generate --source xxx --destination xxx --exclude folder_to_excluse --exlude yet_another_folder

(与多个来源的行为相同)

我试图在.conf文件中排除多个文件夹,当我得到答案时我会更新这个答案:D,希望它有所帮助.

– 更新 –

要从配置文件添加多个源和/或多个排除引用,请执行以下操作:

# Source file or directory to parse

source:

# ../PASTA

- ../sys

- ../anotherfolder

# Directory where to save the generated documentation

destination: 'C:\xampp\htdocs\yourfolder'

# List of allowed file extensions

extensions: [php]

# Mask to exclude file or directory from processing

exclude:

- '../sys/vendor'

- '..sys/core'

#next elements of the config file.

并运行配置文件:

apigen generate --config file.conf

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值