@@ -17,6 +17,7 @@ import org.slf4j.LoggerFactory
1717import java.lang.management.ManagementFactory
1818import java.net.InetAddress
1919import java.nio.file.Paths
20+ import java.time.LocalDate
2021import kotlin.system.exitProcess
2122
2223private var renderBasicInfoToConsole = true
@@ -122,6 +123,13 @@ private fun printPluginsAndServices(node: Node) {
122123}
123124
124125private fun messageOfTheDay (): Pair <String , String > {
126+ // TODO: Remove this next year.
127+ val today = LocalDate .now()
128+ if (today.isAfter(LocalDate .of(2016 , 12 , 20 )) && today.isBefore(LocalDate .of(2017 , 1 , 3 ))) {
129+ val claus = if (Emoji .hasEmojiTerminal) Emoji .santaClaus else " "
130+ return Pair (" The Corda team wishes you a very merry" , " christmas and a happy new year! $claus " )
131+ }
132+
125133 val messages = arrayListOf (
126134 " The only distributed ledger that pays\n homage to Pac Man in its logo." ,
127135 " You know, I was a banker once ...\n but I lost interest. ${Emoji .bagOfCash} " ,
@@ -151,7 +159,7 @@ private fun drawBanner() {
151159 / ____/ _________/ /___ _
152160 / / __ / ___/ __ / __ `/ """ ).fgBrightBlue().a(msg1).newline().fgBrightRed().a(
153161" / /___ /_/ / / / /_/ / /_/ / " ).fgBrightBlue().a(msg2).newline().fgBrightRed().a(
154- """ \____/ /_/ \__,_/\__,_/""" ).reset().newline().newline().fgBrightDefault().
162+ """ \____/ /_/ \__,_/\__,_/""" ).reset().newline().newline().fgBrightDefault().bold().
155163a(" --- DEVELOPER SNAPSHOT ------------------------------------------------------------" ).newline().reset())
156164}
157165
0 commit comments