mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 13:14:18 +02:00
further table streamlining: work with new table api everywhere
This commit is contained in:
@@ -84,8 +84,8 @@ func SnapshotList(conf *cfg.Config) error {
|
||||
}
|
||||
}
|
||||
|
||||
table := printer.NewTable(conf).WithSize(5, len(snapshots))
|
||||
table.Addheaders("name", "index", "start", "orphaned", "status")
|
||||
table := printer.NewTable(conf).WithSize(5, len(snapshots)).
|
||||
WithHeaders("name", "index", "start", "orphaned", "status")
|
||||
|
||||
for idx, snap := range snapshots {
|
||||
table.Entries[idx] = []any{
|
||||
@@ -118,8 +118,8 @@ func SnapshotShow(conf *cfg.Config, snapshot string) error {
|
||||
return errors.New("no snapshot retrieved")
|
||||
}
|
||||
|
||||
table := printer.NewTable(conf).WithSize(2, 17)
|
||||
table.Addheaders("snapshot property", "value")
|
||||
table := printer.NewTable(conf).WithSize(2, 17).
|
||||
WithHeaders("snapshot property", "value")
|
||||
|
||||
snap := res.Snapshots[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user