SAP / cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Apache License 2.0
137 stars 57 forks source link

suppress printing runIndicator when running in batch context #1125

Open ryenus opened 1 month ago

ryenus commented 1 month ago

While running mbt in an interactive context, having runIndicator enabled is quite nice, by indicating the build is work in progress rather than stuck.

However, when running in a batch context, such as CI pipelines, having the dots mixed in the build logs is not really helpful.

It would be nice for mbt to add batch-mode support, which can suppress the runIndicator dots when run in batch mode.

ryenus commented 1 month ago

It would be nice to have a command line option like -B, with --batch-mode being the long option, to allow the user to disable the runIndicator dots when set.

And proposing -B here, because -b is already taken (for sbom). In the meantime Apache Maven also use -B and --batch-mode so that mbt and Apache Maven can be aligned on this.