mirror of https://github.com/sbt/sbt.git
Drop deprecated write-sbt-version & notify-users-about-shell
Introduced in https://github.com/sbt/sbt/pull/4169, these commands aren't "user-facing" and are quite new. So no need to keep the old kebab syntax.
This commit is contained in:
parent
ee1add6f4f
commit
ab35c21c98
|
|
@ -197,9 +197,7 @@ object BuiltinCommands {
|
|||
plugin,
|
||||
plugins,
|
||||
writeSbtVersion,
|
||||
oldWriteSbtVersion,
|
||||
notifyUsersAboutShell,
|
||||
oldNotifyUsersAboutShell,
|
||||
shell,
|
||||
startServer,
|
||||
eval,
|
||||
|
|
@ -856,18 +854,11 @@ object BuiltinCommands {
|
|||
writeSbtVersionUnconditionally(state)
|
||||
|
||||
private def WriteSbtVersion = "writeSbtVersion"
|
||||
private def OldWriteSbtVersion = "write-sbt-version"
|
||||
|
||||
private def writeSbtVersion: Command =
|
||||
Command.command(WriteSbtVersion) { state =>
|
||||
writeSbtVersion(state); state
|
||||
}
|
||||
@deprecated("Use `writeSbtVersion` instead", "1.2.0")
|
||||
private def oldWriteSbtVersion: Command =
|
||||
Command.command(OldWriteSbtVersion) { state =>
|
||||
state.log.warn(deprecationWarningText(OldWriteSbtVersion, WriteSbtVersion))
|
||||
writeSbtVersion(state); state
|
||||
}
|
||||
|
||||
private def intendsToInvokeCompile(state: State) =
|
||||
state.remainingCommands exists (_.commandLine == Keys.compile.key.label)
|
||||
|
|
@ -879,16 +870,9 @@ object BuiltinCommands {
|
|||
}
|
||||
|
||||
private def NotifyUsersAboutShell = "notifyUsersAboutShell"
|
||||
private def OldNotifyUsersAboutShell = "notify-users-about-shell"
|
||||
|
||||
private def notifyUsersAboutShell: Command =
|
||||
Command.command(NotifyUsersAboutShell) { state =>
|
||||
notifyUsersAboutShell(state); state
|
||||
}
|
||||
@deprecated("Use `notifyUsersAboutShell` instead", "1.2.0")
|
||||
private def oldNotifyUsersAboutShell: Command =
|
||||
Command.command(OldNotifyUsersAboutShell) { state =>
|
||||
state.log.warn(deprecationWarningText(OldNotifyUsersAboutShell, NotifyUsersAboutShell))
|
||||
notifyUsersAboutShell(state); state
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue