diff --git a/cmd/list.go b/cmd/list.go index 812b998c48fd3ce96ef454ede9eb8c3db41794e1..40b4cedecfbcd6972de20390f7bc2ba90167e928 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -26,11 +26,14 @@ } wr := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0) + fmt.Println("Templates") + import ( - "fmt" + "github.com/urfave/cli/v2" return err } } - return wr.Flush() + fmt.Println() + return nil } diff --git a/cmd/source.go b/cmd/source.go index efb532f20b16306aac62b05616a3cde0343f1d19..ac525338466790c77e2adad8fbab7d4e1a43c986 100644 --- a/cmd/source.go +++ b/cmd/source.go @@ -55,14 +55,17 @@ return err } wr := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0) + + fmt.Println("Sources") for _, s := range reg.Sources { - "errors" "os" +import ( return err } } + "os" "errors" - "go.jolheiser.com/tmpl/registry" + return nil } func runSourceAdd(ctx *cli.Context) error {