Commit Graph

14 Commits (ea94477cd4844e079db4acad44f0109b9076a939)

Author SHA1 Message Date
Sergey Ponomarev 6b7b5caf54 DNS provider API: structured description
Instead of using comments declare info in a special variable.
Then the variable can be used to print the DNS API provider usage.
The usage can be parsed on UI and show all needed inputs for options.

The info is stored in plain string that it's both human-readable and easy to parse:

    dns_example_info='API name
     An extended description.
     Multiline.
    Domains: list of alternative domains to find
    Site: the dns provider website e.g. example.com
    Docs: Link to ACME.sh wiki for the provider
    Options:
     VARIABLE1 Title for the option1.
     VARIABLE2 Title for the option2. Default "default value".
     VARIABLE3 Title for the option3. Description to show on UI. Optional.
    Issues: Link to a support ticket on https://github.com/acmesh-official/acme.sh
    Author: First Lastname <authoremail@example.com>, Another Author <https://github.com/example>;
    '

Here:
VARIABLE1 will be required.
VARIABLE2 will be required too but will be populated with a "default value".
VARIABLE3 is optional and can be empty.

A DNS provider may have alternative options like CloudFlare may use API KEY or API Token.
You can use a second section OptionsAlt: section.

Some providers may have alternative names or domains e.g. Aliyun and AlibabaCloud.
Add them to Domains: section.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2024-05-18 12:06:41 +03:00
neilpang d795fac37a update repo name 2020-01-30 12:06:39 +08:00
neilpang 10d1361a2c add guide link 2019-06-10 22:35:55 +08:00
klemens 329174b6d9 spelling fixes 2016-12-14 21:32:24 +01:00
neilpang 21f201e371 support cloudflare rm function 2016-12-06 14:58:36 +08:00
neilpang eea52a5fa6 update api template 2016-12-06 13:55:06 +08:00
neilpang 4c2a384159 Add shfmt to format source code 2016-11-09 19:30:39 +08:00
neilpang 5d6fd8099f add dns_xxx_rm function
https://github.com/Neilpang/acme.sh/issues/79
2016-10-25 23:08:02 +08:00
neil bf233fbd48 minor 2016-06-07 13:05:27 +08:00
root 9bf69d30e0 exec mode 2016-05-08 09:19:17 +08:00
neil 0a7c936442 modify shebang to bash after install if bash is installed. 2016-04-17 19:47:22 +08:00
neil 8663fb7e64 revert to bash. there are some issue with sh need to fix yet. 2016-04-17 07:38:43 +08:00
neil 99dc89c051 v2.2.0. It's time to declare that we are `sh` compatible, not only `bash`. 2016-04-16 23:10:46 +08:00
neil 158f22f733 fix compatible for sh. rename api. '-' is not allowed in the function name. 2016-04-16 22:31:17 +08:00