zcsizmadia commented on pull request #1570:
URL: https://github.com/apache/avro/pull/1570#issuecomment-1061891678


   @RyanSkraba I added a build-helper.sh to share fodler as a POC. the c# 
build.sh is using that helper code. That shows kinda the template what to do in 
other languages. As you can see the helper handles all the command line parsing 
and just executes the functions defined by the language specific  build sh 
files.
   
   Couple of objectives I wanted the help build script to meet:
   
   1. Support ask (yes/no/abort)
   2. Support --yes to auto-ytes any questions
   3. Dry run
   4. Colored message functions to show green, yellow or red messages
   5. If the build.sh is successfull (exit code=0) it shows a green "Done." 
message at the end of the script or "FAILED!" if exit code!=0. This would help 
to recognise easily if the script failed. fyi colors can be disabled manually 
or thautomatically if the script is not running on a terminal
   
   I am not sure if language specific commands or options are needed, however 
that can be addedd as well, with some nice trickery


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to