Dedup DefaultCommands and allBasicCommands

The command component's BasicCommands.allBasicCommands is a subset of
main component's BuiltinCommands.DefaultCommands, so I deduplicated.
This commit is contained in:
Dale Wijnand 2017-10-05 09:14:01 +01:00
parent dae4694f46
commit 68129e6782
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 1 additions and 22 deletions

View File

@ -161,9 +161,6 @@ object BuiltinCommands {
def DefaultCommands: Seq[Command] =
Seq(
ignore,
help,
completionsCommand,
about,
tasks,
settingsCommand,
@ -171,9 +168,6 @@ object BuiltinCommands {
templateCommand,
projects,
project,
reboot,
read,
history,
set,
sessionCommand,
inspect,
@ -184,36 +178,21 @@ object BuiltinCommands {
PluginCross.pluginCross,
PluginCross.pluginSwitch,
Cross.crossRestoreSession,
setOnFailure,
clearOnFailure,
stashOnFailure,
popOnFailure,
setLogLevel,
plugin,
plugins,
writeSbtVersion,
notifyUsersAboutShell,
ifLast,
multi,
shell,
oldshell,
startServer,
BasicCommands.client,
continuous,
eval,
alias,
append,
last,
lastGrep,
export,
boot,
nop,
call,
exit,
early,
initialize,
act
) ++ compatCommands
) ++ allBasicCommands
def DefaultBootCommands: Seq[String] =
WriteSbtVersion :: LoadProject :: NotifyUsersAboutShell :: s"$IfLast $Shell" :: Nil