Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a mechanism to add a license header to generated files #85

Open
smola opened this issue Jun 8, 2017 · 1 comment
Open

provide a mechanism to add a license header to generated files #85

smola opened this issue Jun 8, 2017 · 1 comment

Comments

@smola
Copy link

smola commented Jun 8, 2017

In order to comply with licensing requirements, some projects require that every file, included autogenerated ones, start with a predefined copyright header.

It would be nice if proteus provided a way of specifying that header. Maybe with a CLI option --header <path-to-header-file>.

My initial idea was having a flag --include-header that takes the license header from source files, if any. But as @Serabe pointed out, a proto can be generated from many files, so making it automagic is problematic.

@Serabe
Copy link
Contributor

Serabe commented Jun 8, 2017

As a general note, the k8s tool had an option like this and it worked giving the path to a text file.

This can be a solution to this problem, though more planning is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants