buf icon indicating copy to clipboard operation
buf copied to clipboard

Add `buf export --all` flag that provides all files

Open doriable opened this issue 6 months ago • 0 comments

Feature

Right now buf export only returns proto sources. We want to add an --all flag that would return all other files included for the input, such as docs and license files.

buf export by default includes imports -- for imports, non-proto files will not be included with the --all flag. The --all flag is meant only for the input/target module(s).

--all is compatible with --exclude-imports: non-proto files for the input will be returned, and the imports will be excluded in that case.

doriable avatar Jun 13 '25 16:06 doriable