Commit Graph

26 Commits (276e089419592eabe1f188fdb53d161ab835cf70)

Author SHA1 Message Date
neil 7362e8de4d fix format 4 months ago
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
nytral 55787ff7b9 other fixes 7 years ago
nytral b00919c692 various fixes 7 years ago
neilpang f213215c81 fix lua 7 years ago
nytral 8d53ec5353 fixed validation, added LUA while I'm at it 8 years ago
neilpang 1476a9ecf1 fix format 8 years ago
neilpang d78ba322bf fix update 8 years ago
neilpang ab5c1b0a3a minor 8 years ago
neilpang 53fa16d39f minor 8 years ago
neilpang 05cf405cb5 minor 8 years ago
neilpang 5d833336d3 minor 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 a8c6111197 fix shellcheck warnings 8 years ago
neilpang e9f9f515bd fix shellcheck warnings. 8 years ago
neilpang a0636d5a87 fix shellcheck warnings. 8 years ago
neilpang c7b16249b8 fix shellcheck warnings 8 years ago
root 439580b91b apply shfmt to dns_dp api. 8 years ago
neilpang 4c2a384159 Add shfmt to format source code 8 years ago
nytral 1d9f76e2c8 working email contact added 8 years ago
nytral 56e0269e5e email contact added 8 years ago
nytral 662df85e54 s/bash/sh/ 8 years ago
nytral 2be4a5e486 use _base64 8 years ago
nytral a43d697225 cleanup 8 years ago
nytral f06c1e6c78 luadns bash script 8 years ago