Skip to content

Commit

Permalink
Add better alignment to files in status
Browse files Browse the repository at this point in the history
  • Loading branch information
juraj-hrivnak committed Oct 8, 2024
1 parent 6fd1619 commit 36c52c7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/commonMain/kotlin/teksturepako/pakku/cli/cmd/Status.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package teksturepako.pakku.cli.cmd
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.Context
import com.github.ajalt.clikt.core.terminal
import com.github.ajalt.mordant.rendering.TextAlign
import com.github.ajalt.mordant.table.grid
import com.github.ajalt.mordant.terminal.danger
import com.github.michaelbull.result.getOrElse
Expand Down Expand Up @@ -110,10 +111,12 @@ class Status: CliktCommand()
filesUpdated = true

row {
cell(" ".repeat(6) + dim("${provider.shortName}:"))
cell(cFile)
cell(dim("->"))
cell(uFile)
cell(" ".repeat(6) + dim("${provider.shortName}_file:")) {
align = TextAlign.RIGHT
}
cell(cFile) { align = TextAlign.CENTER }
cell(dim("->")) { align = TextAlign.CENTER }
cell(uFile) { align = TextAlign.LEFT }
}
}

Expand Down

0 comments on commit 36c52c7

Please sign in to comment.