mirror of
https://github.com/restic/restic.git
synced 2025-02-02 12:34:10 +00:00
Rename Table.Print -> Table.Write
This commit is contained in:
parent
5c9c1c9dbd
commit
a981141e49
2 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ func list_keys(s restic.Server) error {
|
||||||
k.Username, k.Hostname, k.Created.Format(TimeFormat)})
|
k.Username, k.Hostname, k.Created.Format(TimeFormat)})
|
||||||
})
|
})
|
||||||
|
|
||||||
tab.Print(os.Stdout)
|
tab.Write(os.Stdout)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
_, err := fmt.Fprintln(w, t.Header)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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.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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue