aboutsummaryrefslogtreecommitdiff
path: root/tool/aio.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-20 16:14:32 +0800
committercrupest <crupest@outlook.com>2022-11-20 16:14:32 +0800
commite664eed6cbda95684653b4b13a6430a36cbfd79c (patch)
treeb83f2ba1b36c899dcea552f65c98e61c8319d8e1 /tool/aio.py
parent6e63a9bce3f1f0c8eac2258554c2d48fce5754ce (diff)
downloadcrupest-e664eed6cbda95684653b4b13a6430a36cbfd79c.tar.gz
crupest-e664eed6cbda95684653b4b13a6430a36cbfd79c.tar.bz2
crupest-e664eed6cbda95684653b4b13a6430a36cbfd79c.zip
Add expand ssl certs command.
Diffstat (limited to 'tool/aio.py')
-rwxr-xr-xtool/aio.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/aio.py b/tool/aio.py
index b690b3e..3f3ab69 100755
--- a/tool/aio.py
+++ b/tool/aio.py
@@ -52,6 +52,8 @@ certbot_command_group = certbot_parser.add_mutually_exclusive_group()
certbot_command_group.add_argument(
"-C", "--create", action="store_true", default=False, help="Only print the command for 'create' action.")
certbot_command_group.add_argument(
+ "-E", "--expand", action="store_true", default=False, help="Only print the command for 'expand' action.")
+certbot_command_group.add_argument(
"-R", "--renew", action="store_true", default=False, help="Only print the command for 'renew' action.")
certbot_parser.add_argument(
@@ -156,6 +158,10 @@ if args.action == 'certbot':
console.print(certbot_command_gen(domain, "create",
test=is_test), soft_wrap=True, highlight=False)
exit(0)
+ elif args.expand:
+ console.print(certbot_command_gen(domain, "expand",
+ test=is_test), soft_wrap=True, highlight=False)
+ exit(0)
elif args.renew:
console.print(certbot_command_gen(domain, "renew",
test=is_test), soft_wrap=True, highlight=False)