Skip to content

Commit

Permalink
Use e"" interpolator
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Oct 31, 2023
1 parent bed8a1b commit 06f5dfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/model/frontend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ case class FrontEnd()(using Monitor, Stdio):
tasks.foreach: (taskId, progress) =>
val bar = t""
val size = (progress*20).toInt
Out.print(out"${taskId.name.text.fit(60)} [${colors.LimeGreen}(${bar.s*size}${t" ".s*(19 - size)})]")
Out.print(e"${taskId.name.text.fit(60)} [${colors.LimeGreen}(${bar.s*size}${t" ".s*(19 - size)})]")
Out.println(csi.el())

Out.print(csi.ed())
Expand Down
14 changes: 7 additions & 7 deletions src/model/fury.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ object Main extends Application:

val projects = universe.projects.to(List)
Table[(ProjectId, Definition)](
Column(out"$Bold(Project ID)")(_(0)),
Column(out"$Bold(Name)")(_(1).name),
Column(out"$Bold(Description)")(_(1).description),
Column(out"$Bold(Website)")(_(1).website.mm(_.show).or(t"")),
Column(out"$Bold(Source)"): (_, definition) =>
Column(e"$Bold(Project ID)")(_(0)),
Column(e"$Bold(Name)")(_(1).name),
Column(e"$Bold(Description)")(_(1).description),
Column(e"$Bold(Website)")(_(1).website.mm(_.show).or(t"")),
Column(e"$Bold(Source)"): (_, definition) =>
definition.source match
case workspace: Workspace => out"$Aquamarine(${rootWorkspace.directory.path.relativeTo(workspace.directory.path)})"
case vault: Vault => out"$SeaGreen(${vault.name})"
case workspace: Workspace => e"$Aquamarine(${rootWorkspace.directory.path.relativeTo(workspace.directory.path)})"
case vault: Vault => e"$SeaGreen(${vault.name})"
).tabulate(projects, Environment.columns).map(_.render).foreach(log(_))

Engine.build(ModuleRef(args(0))).await()

0 comments on commit 06f5dfa

Please sign in to comment.