mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
parent
606a66dd6d
commit
5f0123d138
@ -7,6 +7,7 @@ import (
|
||||
"github.com/MichaelMure/git-bug/cache"
|
||||
"github.com/MichaelMure/git-bug/util/colors"
|
||||
"github.com/MichaelMure/git-bug/util/interrupt"
|
||||
"github.com/MichaelMure/git-bug/util/text"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@ -65,8 +66,8 @@ func runLsBug(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
// truncate + pad if needed
|
||||
titleFmt := fmt.Sprintf("%-50.50s", b.Title)
|
||||
authorFmt := fmt.Sprintf("%-15.15s", name)
|
||||
titleFmt := text.LeftPadMaxLine(b.Title, 50, 0)
|
||||
authorFmt := text.LeftPadMaxLine(name, 15, 0)
|
||||
|
||||
fmt.Printf("%s %s\t%s\t%s\tC:%d L:%d\n",
|
||||
colors.Cyan(b.HumanId()),
|
||||
|
Loading…
Reference in New Issue
Block a user