Skip to content

Commit

Permalink
Add left padding to number menu
Browse files Browse the repository at this point in the history
Signed-off-by: Jguer <[email protected]>
  • Loading branch information
Jguer committed Mar 12, 2018
1 parent 30c9862 commit e86e39a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions install.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ func cleanEditNumberMenu(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg, installed
for n, pkg := range pkgs {
dir := config.BuildDir + pkg.PackageBase + "/"

toPrint += magenta(strconv.Itoa(len(pkgs)-n)) + " " + bold(formatPkgbase(pkg, bases))
toPrint += fmt.Sprintf("%s %-40s", magenta(strconv.Itoa(len(pkgs)-n)),
bold(formatPkgbase(pkg, bases)))
if installed.get(pkg.Name) {
toPrint += bold(green(" (Installed)"))
}
Expand All @@ -277,7 +278,7 @@ func cleanEditNumberMenu(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg, installed
fmt.Print(toPrint)

if askClean {
fmt.Println(bold(green(arrow+" Packages to cleanBuild?")))
fmt.Println(bold(green(arrow + " Packages to cleanBuild?")))
fmt.Println(bold(green(arrow) + cyan(" [N]one ") + green("[A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)")))
fmt.Print(bold(green(arrow + " ")))
reader := bufio.NewReader(os.Stdin)
Expand Down Expand Up @@ -337,8 +338,8 @@ func cleanEditNumberMenu(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg, installed
}
}

fmt.Println(bold(green(arrow+" PKGBUILDs to edit?")))
fmt.Println(bold(green(arrow) +cyan(" [N]one ") + green("[A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)")))
fmt.Println(bold(green(arrow + " PKGBUILDs to edit?")))
fmt.Println(bold(green(arrow) + cyan(" [N]one ") + green("[A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)")))

fmt.Print(bold(green(arrow + " ")))
reader := bufio.NewReader(os.Stdin)
Expand Down

0 comments on commit e86e39a

Please sign in to comment.