Commit Graph

25 Commits (cefa7d940a310af21dedcad1d03676fbe6c7064c)

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
Viktor Szépe eb9005ad74
Fix SC2236 5 years ago
Nick Stepa 4eff3b6a24 Change error to info in case record already exists. 5 years ago
Nick Stepa e5f69f0815 Fix indentation. 5 years ago
Nick Stepa ef7b51beb7 Remove local keyword. 5 years ago
Nick Stepa 8494ac8f3d Fix dns records removing after usage. 5 years ago
Vlad Roskov f85348ba94 fix delete multiple records 7 years ago
Vlad Roskov 2f15ad4be0 fix authentication 7 years ago
Vlad Roskov f254bb39a5 bail out on no access 7 years ago
Vlad Roskov c58465d630 fix comparison on empty var 7 years ago
neilpang 32d8f349c9 add debug info 7 years ago
neilpang d6f8d63742 fix https://github.com/Neilpang/acme.sh/issues/1286 7 years ago
neilpang 3e3161c747 fix format 7 years ago
neilpang 52b945164c fix https://github.com/Neilpang/acme.sh/issues/1247 7 years ago
Vladimir Berezhnoy c848d3ee22 fix formatting 8 years ago
Vladimir Berezhnoy eb6be88fac rework root domain detection 8 years ago
Vladimir Berezhnoy fceb728501 fix egrep and exit 8 years ago
Vladimir Berezhnoy a0df46258d remove python 8 years ago
Vladimir Berezhnoy 57d1db58db shfmt fixes 8 years ago
Vladimir Berezhnoy d61b687853 remove awk 8 years ago
Vladimir Berezhnoy 42ab7a5d72 add newline and checks 8 years ago
Vladimir Berezhnoy 18cb11dcbf fix formatting 8 years ago
Vladimir Berezhnoy e9d5407792 fix syntax 8 years ago
Vladimir Berezhnoy a09b2c0074 fix syntax 8 years ago
Vladimir Berezhnoy a460ac021f add pdd.yandex.ru dns api 8 years ago