Skip to content

Commit

Permalink
Add GPU fields to plans printer (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
optik-aper committed Jun 3, 2022
1 parent 6f5abf0 commit 27c4452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/printer/plans.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
)

func Plan(plan []govultr.Plan, meta *govultr.Meta) {
col := columns{"ID", "VCPU COUNT", "RAM", "DISK", "DISK COUNT", "BANDWIDTH GB", "PRICE PER MONTH", "TYPE", "REGIONS"}
col := columns{"ID", "VCPU COUNT", "RAM", "DISK", "DISK COUNT", "BANDWIDTH GB", "PRICE PER MONTH", "TYPE", "GPU VRAM", "GPU TYPE", "REGIONS"}
display(col)
for _, p := range plan {
display(columns{p.ID, p.VCPUCount, p.RAM, p.Disk, p.DiskCount, p.Bandwidth, p.MonthlyCost, p.Type, p.Locations})
display(columns{p.ID, p.VCPUCount, p.RAM, p.Disk, p.DiskCount, p.Bandwidth, p.MonthlyCost, p.Type, p.GPUVRAM, p.GPUType, p.Locations})
}

Meta(meta)
Expand Down

0 comments on commit 27c4452

Please sign in to comment.