Skip to content

Commit 694fce7

Browse files
committed
fix goline part 2
1 parent 7cac44b commit 694fce7

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/cmd/main.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ func Run(content embed.FS) {
5959
lipgloss.NewStyle().Foreground(lipgloss.Color("#ffcc66")).Render("[Hotkeys file path]"),
6060
variable.HotkeysFile,
6161
)
62-
fmt.Printf("%-*s %s\n",
63-
common.HelpKeyColumnWidth,
64-
lipgloss.NewStyle().Foreground(lipgloss.Color("#66ff66")).Render("[Log file path]"), variable.LogFile)
65-
fmt.Printf("%-*s %s\n",
66-
common.HelpKeyColumnWidth,
67-
lipgloss.NewStyle().Foreground(lipgloss.Color("#ff9999")).Render("[Configuration directory path]"), variable.SuperFileMainDir)
68-
fmt.Printf("%-*s %s\n",
69-
common.HelpKeyColumnWidth,
70-
lipgloss.NewStyle().Foreground(lipgloss.Color("#ff66ff")).Render("[Data directory path]"), variable.SuperFileDataDir)
62+
logStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("#66ff66"))
63+
configStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("#ff9999"))
64+
dataStyle := lipgloss.NewStyle().Foreground(lipgloss.Color("#ff66ff"))
65+
fmt.Printf("%-*s %s\n", common.HelpKeyColumnWidth,
66+
logStyle.Render("[Log file path]"), variable.LogFile)
67+
fmt.Printf("%-*s %s\n", common.HelpKeyColumnWidth,
68+
configStyle.Render("[Configuration directory path]"), variable.SuperFileMainDir)
69+
fmt.Printf("%-*s %s\n", common.HelpKeyColumnWidth,
70+
dataStyle.Render("[Data directory path]"), variable.SuperFileDataDir)
7171
return nil
7272
},
7373
Flags: []cli.Flag{

src/internal/model.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ func (m *model) setMetadataModelSize() {
331331

332332
// TODO: Remove this code duplication with footer models
333333
func (m *model) setProcessBarModelSize() {
334-
m.processBarModel.SetDimensions(utils.FooterWidth(m.fullWidth)+common.BorderPadding, m.footerHeight+common.BorderPadding)
334+
m.processBarModel.SetDimensions(
335+
utils.FooterWidth(m.fullWidth)+common.BorderPadding,
336+
m.footerHeight+common.BorderPadding)
335337
}
336338

337339
// Identify the current state of the application m and properly handle the

0 commit comments

Comments
 (0)