clarify further the brokenness of C++. why the fuck are we using C++?
This commit is contained in:
@@ -43,6 +43,8 @@ ENV_FILE = os.path.join(os.path.dirname(__file__), ".env")
|
|||||||
SECDEP_SSH_PUBLIC_KEY = os.path.join(os.path.dirname(__file__), "secdep.pub")
|
SECDEP_SSH_PUBLIC_KEY = os.path.join(os.path.dirname(__file__), "secdep.pub")
|
||||||
SECDEP_SSH_PRIVATE_KEY = os.path.join(os.path.dirname(__file__), "secdep")
|
SECDEP_SSH_PRIVATE_KEY = os.path.join(os.path.dirname(__file__), "secdep")
|
||||||
|
|
||||||
|
action_choices = ["delete","start","stop","reboot","deleteall","startall","stopall","rebootall"]
|
||||||
|
|
||||||
if not len(sys.argv) > 1:
|
if not len(sys.argv) > 1:
|
||||||
print("No arguments passed. Use -h or --help for help")
|
print("No arguments passed. Use -h or --help for help")
|
||||||
exit(0)
|
exit(0)
|
||||||
@@ -54,7 +56,7 @@ parser = argparse.ArgumentParser(
|
|||||||
parser.add_argument('-l', '--list', help='List all instances', action='store_true')
|
parser.add_argument('-l', '--list', help='List all instances', action='store_true')
|
||||||
parser.add_argument('-v', '--values', help='Change credential values', action='store_true')
|
parser.add_argument('-v', '--values', help='Change credential values', action='store_true')
|
||||||
parser.add_argument('-P', '--provider', help='Cloud provider', choices=['gce', 'azure', 'aws'])
|
parser.add_argument('-P', '--provider', help='Cloud provider', choices=['gce', 'azure', 'aws'])
|
||||||
parser.add_argument('-a', '--action', help='Action to perform on a single or all instances', choices=['delete', 'start', 'stop', 'reboot', 'deleteall', 'startall', 'stopall', 'rebootall'])
|
parser.add_argument('-a', '--action', help='Action to perform on a single or all instances. Valid options are delete[all] start[all] stop[all] reboot[all]', choices=action_choices, metavar='ACTION')
|
||||||
parser.add_argument('-c', '--create', help='Create an instance', action='store_true')
|
parser.add_argument('-c', '--create', help='Create an instance', action='store_true')
|
||||||
parser.add_argument('-dep', '--deploy', help='Docker images to deploy', type=str, nargs='*', default=None, required=False)
|
parser.add_argument('-dep', '--deploy', help='Docker images to deploy', type=str, nargs='*', default=None, required=False)
|
||||||
parser.add_argument('-I', '--listimages', help='List images', action='store_true')
|
parser.add_argument('-I', '--listimages', help='List images', action='store_true')
|
||||||
|
|||||||
Reference in New Issue
Block a user