test: create tests for the util functions

This commit is contained in:
Theis
2024-10-16 20:47:35 +02:00
parent 5cfa40876b
commit 87a6de6b6f
7 changed files with 130 additions and 10 deletions
+6 -5
View File
@@ -31,11 +31,12 @@ var rootCmd = &cobra.Command{
switch len(args) {
case 0:
// launch the tui
sel_auth := tui.Entry()
for _, a := range sel_auth {
fmt.Println(a)
}
os.Exit(0)
args = append(args, tui.Entry_CM())
fmt.Println(args[0])
//sel_auth := tui.Entry()
// for _, a := range sel_auth {
// fmt.Println(a)
// }
case 1:
if len(args) == 1 {
utils.GitWrapper(args[0])