Skip to content

Commit

Permalink
Merge pull request #2272 from liquibase/add-QC-commands-linux
Browse files Browse the repository at this point in the history
Added Quality Checks commands and subcommands
  • Loading branch information
nvoxland committed Feb 22, 2022
2 parents 1d63200 + 358bf67 commit a001974
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions liquibase-dist/src/main/archive/lib/liquibase_autocomplete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,17 @@ _liquibase()
clearCheckSums
changelogSync
changelogSyncSQL
changeLogSyncToTag
changeLogSyncToTagSQL
changeLogSyncToTag
changeLogSyncToTagSQL
checks^show
checks^run
checks^bulk-set
checks^delete^--check-name=<check_short_name>
checks^customize^--check-name=<check_short_name>
checks^enable^--check-name=<check_short_name>
checks^disable^--check-name=<check_short_name>
checks^copy^--check-name=<check_short_name>
checks^reset^--check-name=<check_short_name>
markNextChangeSetRan
markNextChangeSetRanSQL
listLocks
Expand Down Expand Up @@ -115,6 +124,7 @@ changeLogSyncToTagSQL
--diffTypes=<catalog,tables,functions,views,columns,indexes,foreignkeys,primarykeys,uniqueconstraints,data,storedprocedure,triggers,sequences> -D<property.name>=<property.value>
--verbose
--liquibaseProLicenseKey"

# Handle --xxxxxx=
if [[ ${prev} == "--"* && ${cur} == "=" ]] ; then
COMPREPLY=(*)
Expand All @@ -138,6 +148,15 @@ changeLogSyncToTagSQL
# If there's only one option, without =, then allow a space
compopt +o nospace
fi

# Handle subcommands
for i in "${!COMPREPLY[@]}"; do
temp="${COMPREPLY[$i]}"
COMPREPLY[$i]="${temp//\^/ }"
done

return 0
}


complete -o nospace -F _liquibase liquibase

0 comments on commit a001974

Please sign in to comment.