MCPcopy
hub / github.com/certbot/certbot / _plugins_parsing

Function _plugins_parsing

certbot/src/certbot/_internal/cli/plugins_parsing.py:11–100  ·  view source on GitHub ↗
(helpful: "helpful.HelpfulArgumentParser",
                     plugins: disco.PluginsRegistry)

Source from the content-addressed store, hash-verified

9
10
11def _plugins_parsing(helpful: "helpful.HelpfulArgumentParser",
12 plugins: disco.PluginsRegistry) -> None:
13 # It's nuts, but there are two "plugins" topics. Somehow this works
14 helpful.add_group(
15 "plugins", description="Plugin Selection: Certbot client supports an "
16 "extensible plugins architecture. See '%(prog)s plugins' for a "
17 "list of all installed plugins and their names. You can force "
18 "a particular plugin by setting options provided below. Running "
19 "--help <plugin_name> will list flags specific to that plugin.")
20
21 helpful.add("plugins", "--configurator", default=flag_default("configurator"),
22 help="Name of the plugin that is both an authenticator and an installer."
23 " Should not be used together with --authenticator or --installer. "
24 "(default: Ask)")
25 helpful.add(["plugins", "reconfigure"], "-a", "--authenticator",
26 default=flag_default("authenticator"), help="Authenticator plugin name.")
27 helpful.add(["plugins", "reconfigure"], "-i", "--installer", default=flag_default("installer"),
28 help="Installer plugin name (also used to find domains).")
29 helpful.add(["plugins", "certonly", "run", "install"],
30 "--apache", action="store_true", default=flag_default("apache"),
31 help="Obtain and install certificates using Apache")
32 helpful.add(["plugins", "certonly", "run", "install"],
33 "--nginx", action="store_true", default=flag_default("nginx"),
34 help="Obtain and install certificates using Nginx")
35 helpful.add(["plugins", "certonly"], "--standalone", action="store_true",
36 default=flag_default("standalone"),
37 help='Obtain certificates using a "standalone" webserver.')
38 helpful.add(["plugins", "certonly"], "--manual", action="store_true",
39 default=flag_default("manual"),
40 help="Provide laborious manual instructions for obtaining a certificate")
41 helpful.add(["plugins", "certonly", "reconfigure"], "--webroot", action="store_true",
42 default=flag_default("webroot"),
43 help="Obtain certificates by placing files in a webroot directory.")
44 helpful.add(["plugins", "certonly"], "--dns-cloudflare", action="store_true",
45 default=flag_default("dns_cloudflare"),
46 help=("Obtain certificates using a DNS TXT record (if you are "
47 "using Cloudflare for DNS)."))
48 helpful.add(["plugins", "certonly"], "--dns-digitalocean", action="store_true",
49 default=flag_default("dns_digitalocean"),
50 help=("Obtain certificates using a DNS TXT record (if you are "
51 "using DigitalOcean for DNS)."))
52 helpful.add(["plugins", "certonly"], "--dns-dnsimple", action="store_true",
53 default=flag_default("dns_dnsimple"),
54 help=("Obtain certificates using a DNS TXT record (if you are "
55 "using DNSimple for DNS)."))
56 helpful.add(["plugins", "certonly"], "--dns-dnsmadeeasy", action="store_true",
57 default=flag_default("dns_dnsmadeeasy"),
58 help=("Obtain certificates using a DNS TXT record (if you are "
59 "using DNS Made Easy for DNS)."))
60 helpful.add(["plugins", "certonly"], "--dns-gehirn", action="store_true",
61 default=flag_default("dns_gehirn"),
62 help=("Obtain certificates using a DNS TXT record "
63 "(if you are using Gehirn Infrastructure Service for DNS)."))
64 helpful.add(["plugins", "certonly"], "--dns-google", action="store_true",
65 default=flag_default("dns_google"),
66 help=("Obtain certificates using a DNS TXT record (if you are "
67 "using Google Cloud DNS)."))
68 helpful.add(["plugins", "certonly"], "--dns-linode", action="store_true",

Callers 1

prepare_and_parse_argsFunction · 0.90

Calls 4

flag_defaultFunction · 0.90
add_groupMethod · 0.80
add_plugin_argsMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected