Skip to content

Commit

Permalink
Update indentation style
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Nov 11, 2024
1 parent 958c61c commit 1fb3332
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
14 changes: 7 additions & 7 deletions src/core/ethereal-core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ package daemonConfig:
def service[BusType <: Matchable](using service: DaemonService[BusType]): DaemonService[BusType] = service

def cli[BusType <: Matchable](using executive: Executive)
(block: DaemonService[BusType] ?=> executive.CliType ?=> executive.Return)
(using interpreter: CliInterpreter,
stderrSupport: StderrSupport = daemonConfig.supportStderr,
model: ThreadModel,
handler: UnhandledErrorHandler)
(block: DaemonService[BusType] ?=> executive.CliType ?=> executive.Return)
(using interpreter: CliInterpreter,
stderrSupport: StderrSupport = daemonConfig.supportStderr,
model: ThreadModel,
handler: UnhandledErrorHandler)
: Unit =

given Realm: Realm = realm"ethereal"
Expand Down Expand Up @@ -106,7 +106,7 @@ def cli[BusType <: Matchable](using executive: Executive)
val buildId = safely(buildIdPath.read[Text].trim).or(t"0")
val prefix = (Classpath / n"ethereal" / n"prefix").read[Text]
path.open(prefix.sub(t"%%BUILD_ID%%", buildId).writeTo(_))

jarFile.open: jarFile =>
Eof(path).open(jarFile.stream[Bytes].writeTo(_))

Expand Down Expand Up @@ -142,7 +142,7 @@ def cli[BusType <: Matchable](using executive: Executive)
pid.let(terminatePid.fulfill(_)).or(termination)

def makeClient(socket: jn.Socket)
(using Monitor, Stdio, Codicil)
(using Monitor, Stdio, Codicil)
: Unit logs DaemonLogEvent raises StreamError raises CharDecodeError raises NumberError =

async:
Expand Down
12 changes: 6 additions & 6 deletions src/core/ethereal.DaemonEvent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import language.experimental.pureFunctions

enum DaemonEvent:
case Init
(pid: Pid,
work: Text,
script: Text,
cliInput: CliInput,
arguments: List[Text],
environment: List[Text])
(pid: Pid,
work: Text,
script: Text,
cliInput: CliInput,
arguments: List[Text],
environment: List[Text])

case Trap(pid: Pid, signal: Signal)
case Exit(pid: Pid)
Expand Down
14 changes: 7 additions & 7 deletions src/core/ethereal.DaemonService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import exoskeleton.*
import language.experimental.pureFunctions

case class DaemonService[BusType <: Matchable]
(pid: Pid,
shutdown: () => Unit,
cliInput: CliInput,
script: Path on Linux,
deliver: BusType => Unit,
bus: LazyList[BusType],
scriptName: Text)
(pid: Pid,
shutdown: () => Unit,
cliInput: CliInput,
script: Path on Linux,
deliver: BusType => Unit,
bus: LazyList[BusType],
scriptName: Text)
extends ShellContext:

def broadcast(message: BusType): Unit = deliver(message)
6 changes: 3 additions & 3 deletions src/core/ethereal.Installer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object Installer:
case PathNotWritable

def candidateTargets()(using service: DaemonService[?], diagnostics: Diagnostics)
(using Environment, HomeDirectory, SystemProperties)
(using Environment, HomeDirectory, SystemProperties)
: List[Path on Linux] logs DaemonLogEvent raises InstallError =
tend:
case PathError(_, _) => InstallError(InstallError.Reason.Environment)
Expand All @@ -85,8 +85,8 @@ object Installer:
case index => index

def install(force: Boolean = false, target: Optional[Path on Linux] = Unset)
(using service: DaemonService[?], environment: Environment, home: HomeDirectory)
(using Effectful, Diagnostics)
(using service: DaemonService[?], environment: Environment, home: HomeDirectory)
(using Effectful, Diagnostics)
: Result logs DaemonLogEvent raises InstallError =
import workingDirectories.default
import systemProperties.virtualMachine
Expand Down

0 comments on commit 1fb3332

Please sign in to comment.