13 lines
267 B
Python
13 lines
267 B
Python
|
import vultron.cmd
|
||
|
|
||
|
class Vpc(vultron.cmd.Command):
|
||
|
"""Query for information on VPCs."""
|
||
|
|
||
|
def vultron_list(self, *args):
|
||
|
"""Display all VPCs."""
|
||
|
|
||
|
vpcs = self.api.get("vpcs")
|
||
|
display = vultron.display.render(self.out, vpcs["vpcs"])
|
||
|
|
||
|
print(display)
|