mirror of https://github.com/sbt/sbt.git
Rename to sbtn
This commit is contained in:
parent
cd47b5c47b
commit
0b94b68fb5
|
|
@ -19,8 +19,8 @@ for:
|
||||||
only:
|
only:
|
||||||
- build-graal
|
- build-graal
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: client/target/bin/sbtc
|
- path: client/target/bin/sbtn
|
||||||
name: sbtc
|
name: sbtn
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- curl -sL https://github.com/sbt/sbt/releases/download/v1.3.10/sbt-1.3.10.tgz > ~/sbt-bin.tgz
|
- curl -sL https://github.com/sbt/sbt/releases/download/v1.3.10/sbt-1.3.10.tgz > ~/sbt-bin.tgz
|
||||||
|
|
@ -50,7 +50,7 @@ for:
|
||||||
only:
|
only:
|
||||||
- build-graal
|
- build-graal
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: client/target/bin/sbtc
|
- path: client/target/bin/sbtn
|
||||||
name: mac-native-sbt-client
|
name: mac-native-sbt-client
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
@ -81,8 +81,8 @@ for:
|
||||||
- build-graal
|
- build-graal
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: client\target\bin\sbtc.exe
|
- path: client\target\bin\sbtn.exe
|
||||||
name: sbtc.exe
|
name: sbtn.exe
|
||||||
install:
|
install:
|
||||||
- cinst jdk8 -params 'installdir=C:\\jdk8'
|
- cinst jdk8 -params 'installdir=C:\\jdk8'
|
||||||
- SET CI=true
|
- SET CI=true
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,7 @@ lazy val sbtRoot: Project = (project in file("."))
|
||||||
case Some(p) => file(p).toPath
|
case Some(p) => file(p).toPath
|
||||||
case _ =>
|
case _ =>
|
||||||
dir match {
|
dir match {
|
||||||
case Some(d) => d / "sbtc"
|
case Some(d) => d / "sbtn"
|
||||||
case _ =>
|
case _ =>
|
||||||
val msg = "Expected input parameter <path>: installNativeExecutable /usr/local/bin"
|
val msg = "Expected input parameter <path>: installNativeExecutable /usr/local/bin"
|
||||||
throw new IllegalStateException(msg)
|
throw new IllegalStateException(msg)
|
||||||
|
|
@ -1125,7 +1125,7 @@ lazy val sbtClientProj = (project in file("client"))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
thinClientNativeImageCommand := System.getProperty("sbt.native-image", "native-image").toString,
|
thinClientNativeImageCommand := System.getProperty("sbt.native-image", "native-image").toString,
|
||||||
buildNativeThinClient / name := s"sbtc${if (isWin) ".exe" else ""}",
|
buildNativeThinClient / name := s"sbtn${if (isWin) ".exe" else ""}",
|
||||||
nativeThinClientPath := target.value.toPath / "bin" / (buildNativeThinClient / name).value,
|
nativeThinClientPath := target.value.toPath / "bin" / (buildNativeThinClient / name).value,
|
||||||
thinClientNativeImageClass := "sbt.client.Client",
|
thinClientNativeImageClass := "sbt.client.Client",
|
||||||
buildNativeThinClient := {
|
buildNativeThinClient := {
|
||||||
|
|
@ -1168,7 +1168,7 @@ lazy val sbtClientProj = (project in file("client"))
|
||||||
"-H:IncludeResourceBundles=jline.console.completer.CandidateListCompletionHandler",
|
"-H:IncludeResourceBundles=jline.console.completer.CandidateListCompletionHandler",
|
||||||
"-H:+ReportExceptionStackTraces",
|
"-H:+ReportExceptionStackTraces",
|
||||||
"-H:-ParseRuntimeOptions",
|
"-H:-ParseRuntimeOptions",
|
||||||
s"-H:Name=${target.value / "bin" / "sbtc"}",
|
s"-H:Name=${target.value / "bin" / "sbtn"}",
|
||||||
),
|
),
|
||||||
buildThinClient := {
|
buildThinClient := {
|
||||||
val isFish = Def.spaceDelimited("").parsed.headOption.fold(false)(_ == "--fish")
|
val isFish = Def.spaceDelimited("").parsed.headOption.fold(false)(_ == "--fish")
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#compdef sbtc
|
#compdef sbtn
|
||||||
|
|
||||||
COMPLETE="--completions=${words[@]}"
|
COMPLETE="--completions=${words[@]}"
|
||||||
COMPLETIONS=($(sbtc --no-tab ${COMPLETE}))
|
COMPLETIONS=($(sbtc --no-tab ${COMPLETE}))
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
function __sbtcomp
|
|
||||||
sbtc --completions="$argv"
|
|
||||||
end
|
|
||||||
complete --command sbtc -f --arguments '(__sbtcomp (commandline -cp))'
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
$scriptblock = {
|
|
||||||
param($commandName, $line, $position)
|
|
||||||
$len = $line.ToString().length
|
|
||||||
$spaces = " " * ($position - $len)
|
|
||||||
$arg="--completions=$line$spaces"
|
|
||||||
& 'sbtc.exe' @('--no-tab', '--no-stderr', $arg)
|
|
||||||
}
|
|
||||||
Set-Alias -Name sbtc -Value sbtc.exe
|
|
||||||
Register-ArgumentCompleter -CommandName sbtc.exe -ScriptBlock $scriptBlock
|
|
||||||
Register-ArgumentCompleter -CommandName sbtc -ScriptBlock $scriptBlock
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
_do_sbtc_completions() {
|
_do_sbtn_completions() {
|
||||||
COMPREPLY=($(sbtc "--completions=${COMP_LINE}"))
|
COMPREPLY=($(sbtc "--completions=${COMP_LINE}"))
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _do_sbtc_completions sbtc
|
complete -F _do_sbtn_completions sbtn
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
function __sbtcomp
|
||||||
|
sbtc --completions="$argv"
|
||||||
|
end
|
||||||
|
complete --command sbtn -f --arguments '(__sbtcomp (commandline -cp))'
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
$scriptblock = {
|
||||||
|
param($commandName, $line, $position)
|
||||||
|
$len = $line.ToString().length
|
||||||
|
$spaces = " " * ($position - $len)
|
||||||
|
$arg="--completions=$line$spaces"
|
||||||
|
& 'sbtn.exe' @('--no-tab', '--no-stderr', $arg)
|
||||||
|
}
|
||||||
|
Set-Alias -Name sbtn -Value sbtn.exe
|
||||||
|
Register-ArgumentCompleter -CommandName sbtn.exe -ScriptBlock $scriptBlock
|
||||||
|
Register-ArgumentCompleter -CommandName sbtn -ScriptBlock $scriptBlock
|
||||||
|
|
@ -58,7 +58,7 @@ object ClientTest extends AbstractServerTest {
|
||||||
val cps = new CachingPrintStream
|
val cps = new CachingPrintStream
|
||||||
NetworkClient.complete(
|
NetworkClient.complete(
|
||||||
testPath.toFile,
|
testPath.toFile,
|
||||||
Array(s"--completions=sbtc $completionString"),
|
Array(s"--completions=sbtn $completionString"),
|
||||||
false,
|
false,
|
||||||
tabs,
|
tabs,
|
||||||
cps
|
cps
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue