php-plantumlwriter
php-plantumlwriter copied to clipboard
Filtering filename
Hello, I hope the write command have some options to filter file according filename extension, which should be include or exclude when parsing. Also it's best to let user decide whether to parsing recursively.
You can actually achieve this using find and xargs. This parses only php files in the current directory:
find ./ -maxdepth 1 -name "*.php" | xargs php-plantuml write
Get it, thanks!
A careful remark on the xargs solution: it will work when there are not too many files. There's a limit to number of arguments or you'll get
xargs: argument line too long
Thanks for the remark!
You can use "-n number" params to limit the number of arguments which xargs pass to php-plantuml everytime.