From b96a190c7485318ba709e62ac20b7c703f7374f5 Mon Sep 17 00:00:00 2001 From: Andreas Ulm Date: Thu, 25 Apr 2019 15:59:41 +0200 Subject: [PATCH] removed header & changed delimiter to pipe Signed-off-by: Andreas Ulm --- cmd/repos.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cmd/repos.go b/cmd/repos.go index a50f29d..956450f 100644 --- a/cmd/repos.go +++ b/cmd/repos.go @@ -22,10 +22,6 @@ var CmdRepos = cli.Command{ Name: "login, l", Usage: "Indicate one login, optional when inside a gitea repository", }, - cli.BoolFlag{ - Name: "noheader", - Usage: "Skip header on output.", - }, }, } @@ -43,9 +39,7 @@ func runRepos(ctx *cli.Context) error { return nil } - if noheader := getGlobalFlag(ctx, "noheader"); noheader != "true" { - fmt.Printf("Name\tType/Mode\tSSH-URL\tOwner\n") - } + fmt.Println("Name | Type/Mode | SSH-URL | Owner") for _, rp := range rps { var mode = "source" if rp.Fork { @@ -54,7 +48,7 @@ func runRepos(ctx *cli.Context) error { if rp.Mirror { mode = "mirror" } - fmt.Printf("%s\t%s\t%s\t%s\n", rp.FullName, mode, rp.SSHURL, rp.Owner.UserName) + fmt.Printf("%s | %s | %s | %s\n", rp.FullName, mode, rp.SSHURL, rp.Owner.UserName) } return nil