Skip to content

Commit

Permalink
Disable inclusion of auto-complete files as picocli does support cust…
Browse files Browse the repository at this point in the history
…om types/list autocomplete yet

remkop/picocli#1346
  • Loading branch information
loicrouchon committed Mar 21, 2021
1 parent b87c127 commit 1ca5946
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -183,24 +183,15 @@ task generateShellCompletions(type: JavaExec) {
outputs.file("${buildDir}/shell/completions/${project.name}")
classpath "${buildDir}/install/${project.name}/lib/*"
main "picocli.AutoComplete"
args "org.symly.cli.MainCommand",
"-c",
"org.symly.cli.BeanFactory",
"-o=${buildDir}/shell/completions/${project.name}"
args "org.${project.name}.cli.MainCommand",
"--factory=org.${project.name}.cli.BeanFactory",
"--completionScript=${buildDir}/shell/completions/${project.name}"
}

// DEBIAN packaging
// needs a native image to be generated for a linux-amd64 target first
task prepareDebianPackage(type: Copy) {
dependsOn generateManpage, generateShellCompletions
inputs.files(
"LICENSE",
"packaging/${project.name}",
"${buildDir}/libs/${project.name}",
"${buildDir}/docs/manpage/gz",
"${buildDir}/shell/completions"
)
outputs.dir("${buildDir}/packaging/debian")
from("LICENSE") {
into "usr/share/doc/${project.name}"
rename "LICENSE", "copyright"
Expand All @@ -215,9 +206,10 @@ task prepareDebianPackage(type: Copy) {
into "usr/man/man1"
rename "LICENSE", "copyright"
}
from("${buildDir}/shell/completions") {
into "/usr/share/bash-completion/completions"
}
// requires https://github.com/remkop/picocli/issues/1346
// from("${buildDir}/shell/completions") {
// into "/usr/share/bash-completion/completions"
// }
into "${buildDir}/packaging/debian"
}

Expand Down

0 comments on commit 1ca5946

Please sign in to comment.