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
Add option/envvar to disable banner #1561
Comments
Hi @fabiang Thanks for creating this request. We will add it to the list of issues to process. |
Using the Gradle plugin, thanks to |
Hi, when do you expect to implement this? |
Hi @petromir It's on the list but not a high priority at the moment. |
As one who creates scripts and consumes their logs, +1 to this. Created a PowerShell (7.1.4) function to strip the banner. Probably overkill. It handles # personal preference: do not assume constant number of lines in banner
function removeLiquibaseBanner($outputTextArray) {
$bannerBorder = '####################################################'
$preBannerTextArray = @()
$inBanner = $false
$lineAfterBanner = -1
for ($i = 0; $i -lt $outputTextArray.Count; $i++) {
$line = $outputTextArray[$i]
$isBannerBorder = $line.ToString() -eq $bannerBorder
if (-not $inBanner -and $isBannerBorder) {
$inBanner = $true
} elseif (-not $inBanner) {
$preBannerTextArray += $line
} elseif ($isBannerBorder) {
$lineAfterBanner = $i + 1
break
}
}
if ($lineAfterBanner -lt 0) {
return $preBannerTextArray
}
$lastLine = $outputTextArray.Count - 1
$postBannerTextArray = $outputTextArray[$lineAfterBanner..$lastLine]
return $preBannerTextArray + $postBannerTextArray
} Running via the Docker image:
Output with banner:
Output without banner:
Caveats:
|
Another vote for this feature. Scripting anything just results in all this noise that I don't care about :) I know I'm running a Liquibase command LOL. |
Would love to see this be implemented. After running several liquibase commands in a row, the terminal looks very cluttered which is quite annoying. |
@ridicolos GOOD NEWS! This is merged and will be included in the next release! |
Environment
Liquibase Version: >=4.0
Liquibase Integration & Version: CLI
Liquibase Extension(s) & Version: -
Database Vendor & Version: -
Operating System Type & Version: -
Description
Add an global config option or environment variable to disable the banner when executing Liquibase on CLI. Polluting my buffer is annoying af. Thanks.
User Story
As a CLI or automation user, i want control of the banner output, so that I dont see the liquibase logo banner if i dont want.
Requirements
Acceptance Criteria
The text was updated successfully, but these errors were encountered: