tenantgenerator/tenant/commands/resize.py

20 lines
632 B
Python

# tenant/commands/resize.py
from tenant.utils.common import get_secure_password
def add_subparser(subparsers):
resize_parser = subparsers.add_parser("resize", help="Resize resources for a tenant")
resize_parser.add_argument("tenant_name", help="Name of the tenant")
resize_parser.add_argument("--new-size", type=int, help="New size for resources")
def execute(args):
tenant_name = args.tenant_name
new_size = args.new_size
# Use the shared function
# shared_function()
# Your logic for resizing resources
# ...
print(f"Resizing resources for tenant '{tenant_name}' to size {new_size}.")