Compare commits
1 Commits
stable
...
cmd/multit
Author | SHA1 | Date |
---|---|---|
Nick Chambers | b3480661a2 |
|
@ -1,4 +1,5 @@
|
|||
import vultron.cmd
|
||||
import vultron.display
|
||||
|
||||
class Account(vultron.cmd.Command):
|
||||
"""Query for account information."""
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import vultron.cmd
|
||||
|
||||
class Application(vultron.cmd.Command):
|
||||
"""Query for information on Vultr applications."""
|
||||
|
||||
def init(self):
|
||||
self.needs_api_key = False
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import vultron.cmd
|
||||
|
||||
class Backup(vultron.cmd.Command):
|
||||
"""Query for information on instance backups."""
|
||||
|
||||
def vultron_list(self):
|
||||
"""Display all stored snapshots."""
|
||||
|
||||
|
|
|
@ -1,32 +1,9 @@
|
|||
import os
|
||||
import vultron.cmd
|
||||
import vultron.display
|
||||
|
||||
class Help(vultron.cmd.Command):
|
||||
"""This help message."""
|
||||
|
||||
def init(self):
|
||||
self.needs_api_key = False
|
||||
|
||||
def vultron_help(self):
|
||||
"""This help message."""
|
||||
|
||||
prog = os.path.basename(self.prog)
|
||||
cmds = vultron.cmd.Command.__subclasses__()
|
||||
|
||||
print(f"usage: {prog} [options] <cmd>")
|
||||
print()
|
||||
print("About:")
|
||||
print("High-vultage API client for the vultrtual cloud.")
|
||||
print()
|
||||
|
||||
# FIXME: print global options here
|
||||
|
||||
print("Commands:")
|
||||
|
||||
for cmd in cmds:
|
||||
name = cmd.__name__.lower()
|
||||
|
||||
if cmd.__doc__ is None:
|
||||
print(f"\t{name}")
|
||||
else:
|
||||
print(f"\t{name} - {cmd.__doc__}")
|
||||
print("stub help message here")
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
import vultron.cmd
|
||||
|
||||
# FIXME: needs a `--void-warranty` flag potentially.
|
||||
# FIXME: should also have a way to say exact command match only
|
||||
|
||||
class Multitool(vultron.cmd.Command):
|
||||
def vultron_raw(self, *path):
|
||||
"""Display raw API response from Vultr."""
|
||||
pass
|
|
@ -1,4 +1,5 @@
|
|||
import vultron.cmd
|
||||
import vultron.display
|
||||
|
||||
class Region(vultron.cmd.Command):
|
||||
"""Query for information on Vultr regions."""
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import vultron.cmd
|
||||
import vultron.display
|
||||
|
||||
class Vpc(vultron.cmd.Command):
|
||||
"""Query for information on VPCs."""
|
||||
|
|
|
@ -2,6 +2,7 @@ import click
|
|||
import os
|
||||
import sys
|
||||
import vultron.cmd
|
||||
import vultron.display
|
||||
import vultron.err
|
||||
|
||||
from vultron.cmds import *
|
||||
|
|
Loading…
Reference in New Issue