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

Optional command to add a file header in each generated file #311

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crhaglun
Copy link

Add an optional parameter --fileHeader to set a header at the top of each generated file.

This is a legal requirement from my company, any generated code that we use needs to contain information about what tool generated the code.

With this change, a command line like

.\FFmpeg.AutoGen.CppSharpUnsafeGenerator.exe --fileHeader "/// <auto-generated>
///     Generated by FFmpeg.Autogen; https://github.com/Ruslan-B/FFmpeg.AutoGen
/// </auto-generated>"

Will place this comment at the top of each generated file:

/// <auto-generated>
///     Generated by FFmpeg.Autogen; https://github.com/Ruslan-B/FFmpeg.AutoGen
/// </auto-generated>

@crhaglun crhaglun changed the title Add optional command to add a file header to each generated file Optional command to add a file header in each generated file Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant