Merge pull request #5757 from eatkins/thin-client-scala

Build thin client with scala 2.12.11
This commit is contained in:
eugene yokota 2020-08-15 13:16:26 -04:00 committed by GitHub
commit d3ffd33e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -1100,6 +1100,7 @@ lazy val sbtClientProj = (project in file("client"))
.dependsOn(commandProj)
.settings(
commonBaseSettings,
scalaVersion := "2.12.11", // The thin client does not build with 2.12.12
publish / skip := true,
name := "sbt-client",
mimaPreviousArtifacts := Set.empty,

View File

@ -1,5 +1,5 @@
#compdef sbtn
COMPLETE="--completions=${words[@]}"
COMPLETIONS=($(sbtc --no-tab ${COMPLETE}))
COMPLETIONS=($(sbtn --no-tab ${COMPLETE}))
_alternative 'arguments:custom arg:($COMPLETIONS)'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
_do_sbtn_completions() {
COMPREPLY=($(sbtc "--completions=${COMP_LINE}"))
COMPREPLY=($(sbtn "--completions=${COMP_LINE}"))
}
complete -F _do_sbtn_completions sbtn

View File

@ -1,4 +1,4 @@
function __sbtcomp
sbtc --completions="$argv"
sbtn --completions="$argv"
end
complete --command sbtn -f --arguments '(__sbtcomp (commandline -cp))'