mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
refactor: change user tui printout to remove weird line missalignment
This commit is contained in:
@@ -109,7 +109,7 @@ func loadData(author_file string) {
|
|||||||
|
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
//very hacky it basically just ensure glamour doesn't format the email
|
//very hacky it basically just ensure glamour doesn't format the email
|
||||||
cnt.WriteString(":\b" + scanner.Text() + "\n")
|
cnt.WriteString(" " + scanner.Text() + "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
content = cnt.String()
|
content = cnt.String()
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/tui"
|
|
||||||
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/utils"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"slices"
|
"slices"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/tui"
|
||||||
|
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/utils"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -49,7 +50,7 @@ func UsersCmd() *cobra.Command {
|
|||||||
bat.Stderr = os.Stderr
|
bat.Stderr = os.Stderr
|
||||||
bat.Run()
|
bat.Run()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user