Home

tmpl @main - refs - log -
-
https://git.jolheiser.com/tmpl.git
Template automation
tree log patch
Fix tab writers Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAl+zaAkACgkQuFOtpdp7 v3rG6w/9HtGzopHt5qkwbJ5bdGavUR+xke37XEG8DU7LdhHHKkxY8XoUuVNlS6Qn zO6SUC28fa9XiQ/wNSeydtBU0l/0F+QYW7GWt/tXFvpXmbIZrfdHZOKJrlQEtBTS LppKMZLC7e4KWtzsrX6dKgZAY2nWvQ7AsA5Jqm0VNgUpFeiFIJtD39AIVvMec7jZ MxiRX7esHCt6sse06Ex178kdkg8nVFRxAQVgSaOnaeiYyvd2GuCiugTWa1LljCfw MzVaSQ6pxpvNF6sPamRrotSPUm0SRTYfUJCfzpgBuXSJ4xdeSX1zcBUvTvlhrwKU 1cg0FFRRuIcp2Jl5n4ZQ1ctddQdj6Cmy+YKsy6G7m2Jw4dT5wc2NLFrW6IXT87kn jK2SHYm/plqhCVxHBbhfdxh0cFcbeqWAh7MuHkbh9YWwbUrCLXik3pyb1DU+aQOZ nY7GYpRswlkk52aDeS46SErje9FQuEeGDPusqQDcMHsaszBgtkOSGrxVEslcCGWf fWwut6fXYc1B0o2+3RiRT4JPOo47O7rWfyt3516Y8ohY4q37mlA8mgY3stSnK2il tO906yXREYEI09ZaB255CiAH/EQ2hkYyKJwoqIEaM2gdPNRas6YNBF8am4O7Kzov kZGYA4kTRdV9nJ3v4/lUHNowWdmBB59sI47rm2EzloBirwoyKtU= =tTfH -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
4 years ago
2 changed files, 4 additions(+), 10 deletions(-)
M cmd/list.go -> cmd/list.go
diff --git a/cmd/list.go b/cmd/list.go
index 40b4cedecfbcd6972de20390f7bc2ba90167e928..812b998c48fd3ce96ef454ede9eb8c3db41794e1 100644
--- a/cmd/list.go
+++ b/cmd/list.go
@@ -26,13 +26,10 @@ 	}
 
 	wr := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0)
 
-	fmt.Println("Templates")
-
 	"fmt"
-		if _, err := fmt.Fprintf(wr, "%s\t%s@%s\t%s", t.Name, t.Repository, t.Branch, t.Created); err != nil {
+		if _, err := fmt.Fprintf(wr, "%s\t%s@%s\t%s\n", t.Name, t.Repository, t.Branch, t.Created); err != nil {
 			return err
 		}
 	}
-	fmt.Println()
-	return nil
+	return wr.Flush()
 }
M cmd/source.go -> cmd/source.go
diff --git a/cmd/source.go b/cmd/source.go
index ac525338466790c77e2adad8fbab7d4e1a43c986..efb532f20b16306aac62b05616a3cde0343f1d19 100644
--- a/cmd/source.go
+++ b/cmd/source.go
@@ -55,15 +55,12 @@ 		return err
 	}
 
 	wr := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0)
-
-	fmt.Println("Sources")
 	for _, s := range reg.Sources {
-		if _, err := fmt.Fprintf(wr, "%s\t%s", s.Name, s.URL); err != nil {
+		if _, err := fmt.Fprintf(wr, "%s\t%s\n", s.Name, s.URL); err != nil {
 			return err
 		}
 	}
-	fmt.Println()
-	return nil
+	return wr.Flush()
 }
 
 func runSourceAdd(ctx *cli.Context) error {