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