keymanapp / keyman

Keyman cross platform input methods system running on Android, iOS, Linux, macOS, Windows and mobile and desktop web
https://keyman.com/
Other
390 stars 108 forks source link

feat(developer): add a builder-supports test for builder scripts #9226

Open mcdurdin opened 1 year ago

mcdurdin commented 1 year ago

We could do something like:

if [[ ./build.sh builder-supports --option ]]; then 
if [[ ./build.sh builder-supports action ]]; then 
if [[ ./build.sh builder-supports :target ]]; then 

This would allow us to more easily switch build parameters in build configurations, and is cleaner than using:

if [[ `./build.sh --help | grep -- --option` ]]; then 
if [[ `./build.sh --help | grep -- action` ]]; then 
if [[ `./build.sh --help | grep -- :target` ]]; then 
mcdurdin commented 4 months ago

Dropping this for now, because I don't have an immediate use case