Skip to content

Commit

Permalink
updated cli
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoMarlir committed May 18, 2024
1 parent a6ace77 commit 029ae14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/src/test/kotlin/ConsoleTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.net.InetAddress
fun main() {
val terminal = Terminal(
Logger("Terminal", true),
"${ConsoleColors.YELLOW_BRIGHT}${System.getProperty("user.name")}${ConsoleColors.BLACK_BRIGHT}@${ConsoleColors.BLUE_BRIGHT}${InetAddress.getLocalHost().hostName} ${ConsoleColors.BLACK_BRIGHT}» ${ConsoleColors.RESET}",
"${ConsoleColors.YELLOW_BRIGHT}CLI${ConsoleColors.BLACK_BRIGHT}@${ConsoleColors.BLUE_BRIGHT}BlueCloud ${ConsoleColors.BLACK_BRIGHT}» ${ConsoleColors.RESET}",
listOf()
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ class Wrapper: AbstractSystemPart(InternalSystemPartType.WRAPPER) {
private fun postStart() {
logger.info("Starting Wrapper...")
WrapperWatcher.instance.initialize()
while (true) {
Thread.sleep(50000)
}
blockMainThread()
}

private fun setupFileStructure() {
Expand Down Expand Up @@ -82,4 +80,10 @@ class Wrapper: AbstractSystemPart(InternalSystemPartType.WRAPPER) {

processType = serviceProcess
}

private fun blockMainThread() {
while (true) {
Thread.sleep(50000)
}
}
}

0 comments on commit 029ae14

Please sign in to comment.