CLI 在 ApiGen 中排除多个文件夹的正确语法是什么?
我尝试用逗号分隔它们,但它被忽略了(可能读作一条路径):
H:\SERVER>php apigen.phar generate --source [PATH] --destination [PATH] --exclude [PATH]*,[PATH]*
最佳答案
使用终端,我想你可以:
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
关于php - 如何在 Apigen 中排除多个文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32767588/