Commit Graph

23 Commits (87beb0a5f2bdd52a33d5d3336afb453d20038d05)

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>
9 months ago
Zachary Peschke 160513c671 Minor grammar fixes for gd 2 years ago
Awalon 2d4aa7ff8b
Added example and URL for API key 3 years ago
Awalon 5684b7c329
dns_gd (GoDaddy): Delete TXT record instead of just setting them to an empty value. Replaced "#todo: check if the record takes effect" by some error handling and validation. 3 years ago
Tony Gravagno eca57beec1
Issue #2850 : grammar corrections for "exists" and "exist". 5 years ago
neilpang f90a2ae195 check UNABLE_TO_AUTHENTICATE 7 years ago
neil f8526f027c fix https://github.com/Neilpang/acme.sh/issues/1539 7 years ago
neilpang 98a7e72f0a fix https://github.com/Neilpang/acme.sh/issues/1512#issuecomment-381121303 7 years ago
neilpang d8eb08e214 fix format 7 years ago
neilpang c6f5c7f1a3 fix gd 7 years ago
neilpang db50462920 minor use interactive _sleep 8 years ago
Bastian Bittorf 3ca93f4a4c shellcheck: fix several occurences of SC2034
message:
SC2034: $VARNAME appears unused. Verify it or export it.

most of these are related to the style:
we generate global vars, which are used in other functions.

the var "lexical_url" was really unused (left it as comment)

the travis-check now does not need anymore special flags.

Signed-off-by: Bastian Bittorf <bb@npl.de>
8 years ago
klemens 329174b6d9 spelling fixes 8 years ago
neilpang 422e5026d6 fix shellcheck warnings 8 years ago
neilpang e440223b40 fix shellcheck warnings 8 years ago
neilpang 69925ce823 fix shellcheck warnings. 8 years ago
neilpang e9f9f515bd fix shellcheck warnings. 8 years ago
neilpang c7b16249b8 fix shellcheck warnings 8 years ago
neilpang 4c2a384159 Add shfmt to format source code 8 years ago
neilpang 5d6fd8099f add dns_xxx_rm function
https://github.com/Neilpang/acme.sh/issues/79
8 years ago
neil d190a43e0a https://github.com/Neilpang/acme.sh/issues/258 9 years ago
root 0886e67df7 chmod +x 9 years ago
neil 30de13b4df support Godaddy domaain api 9 years ago