parent
c01d965ad7
commit
5e164b9bb9
|
@ -25,13 +25,10 @@ func runList(_ *cli.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
wr := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0)
|
wr := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0)
|
||||||
|
|
||||||
fmt.Println("Templates")
|
|
||||||
for _, t := range reg.Templates {
|
for _, t := range reg.Templates {
|
||||||
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
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Println()
|
return wr.Flush()
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,15 +55,12 @@ func runSourceList(_ *cli.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
wr := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0)
|
wr := tabwriter.NewWriter(os.Stdout, 0, 8, 0, '\t', 0)
|
||||||
|
|
||||||
fmt.Println("Sources")
|
|
||||||
for _, s := range reg.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
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Println()
|
return wr.Flush()
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func runSourceAdd(ctx *cli.Context) error {
|
func runSourceAdd(ctx *cli.Context) error {
|
||||||
|
|
Loading…
Reference in New Issue