mik-laj edited a comment on pull request #1:
URL: https://github.com/apache/airflow-client-go/pull/1#issuecomment-651636094


   > I couldn't find an option to include license header in all generated files 
in openapi-generator.
   
   You need to generate a client and then run another tool that will add the 
missing licenses. We use pre-commit to automatically add licenses in 
apache/airflow, but you can think of another alternative.  An alternative tool 
can be written in Python, Bash or be a completely external binary.
   
https://github.com/apache/airflow/blob/master/.pre-commit-config.yaml#L29-L129
   
   A sample command that adds licenses to the .go file.
   ```
   cat license-templates/llicense-go.go file.go | sponge file.go
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to