Skip to content

Commit

Permalink
Fix formatting of the main file (gofmt)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 30, 2019
1 parent 90ddb50 commit 393aa16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pkgtop.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ func start(osID string) int {
" . oMMd /MMN\n" +
" .pkg` +MMd /MMd\n" +
" `top` omh/ -o:`](fg:white,mod:bold)\n" +
" > [github.com/keylo99/pkgtop](fg:"+termColor+")\n" +
" > [github.com/keylo99/pkgtop](fg:" + termColor + ")\n" +
" > [Interactive package manager & resource monitor (v" +
version + ")](fg:"+termColor+")"
version + ")](fg:" + termColor + ")"
pkgText.BorderStyle.Fg = ui.ColorBlack
sysInfoText.BorderStyle.Fg = ui.ColorBlack
/* Set the operating system variable. */
Expand Down Expand Up @@ -341,8 +341,8 @@ OSCheckLoop:
}
/* Reverse the package list if the command line argument provided. */
if reversePackages {
for i := len(pkgs)/2-1; i >= 0; i-- {
opp := len(pkgs)-3-i
for i := len(pkgs)/2 - 1; i >= 0; i-- {
opp := len(pkgs) - 3 - i
pkgs[i], pkgs[opp] = pkgs[opp], pkgs[i]
}
}
Expand All @@ -353,7 +353,7 @@ OSCheckLoop:
/* Show the OS information. */
cmdList.Rows = append([]string{cmdPrefix + sysInfoCmd}, cmdList.Rows...)
for _, info := range str.Split(" "+execCmd("sh", "-c", sysInfoCmd), "\n") {
sysInfoText.Text += "[" + str.Split(info, ":")[0] + ":](fg:"+termColor+")" +
sysInfoText.Text += "[" + str.Split(info, ":")[0] + ":](fg:" + termColor + ")" +
str.Join(str.Split(info, ":")[1:], "") + "\n"
}
/* Configure and render the main grid layout.
Expand Down

0 comments on commit 393aa16

Please sign in to comment.