From a981141e49b7f8b53dc331e5364da9bdb33c5212 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 22 Dec 2014 11:21:14 +0100 Subject: [PATCH] Rename Table.Print -> Table.Write --- cmd/restic/cmd_key.go | 2 +- cmd/restic/cmd_snapshots.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/restic/cmd_key.go b/cmd/restic/cmd_key.go index bd89ac46d..09d4de557 100644 --- a/cmd/restic/cmd_key.go +++ b/cmd/restic/cmd_key.go @@ -49,7 +49,7 @@ func list_keys(s restic.Server) error { k.Username, k.Hostname, k.Created.Format(TimeFormat)}) }) - tab.Print(os.Stdout) + tab.Write(os.Stdout) return nil } diff --git a/cmd/restic/cmd_snapshots.go b/cmd/restic/cmd_snapshots.go index 036ca49b9..5432d29ae 100644 --- a/cmd/restic/cmd_snapshots.go +++ b/cmd/restic/cmd_snapshots.go @@ -32,7 +32,7 @@ func NewTable() Table { } } -func (t Table) Print(w io.Writer) error { +func (t Table) Write(w io.Writer) error { _, err := fmt.Fprintln(w, t.Header) if err != nil { return err @@ -136,7 +136,7 @@ func (cmd CmdSnapshots) Execute(args []string) error { tab.Rows = append(tab.Rows, []interface{}{sn.ID()[:plen], sn.Time.Format(TimeFormat), sn.Hostname, sn.Dir}) } - tab.Print(os.Stdout) + tab.Write(os.Stdout) return nil }