fix: correct help on various commands and readme
This commit is contained in:
@@ -33,7 +33,7 @@ The following API endpoints are the ones that will be supported, the currently i
|
||||
## Usage
|
||||
|
||||
1. Create API keys for your account, on [Account > API Access](https://porkbun.com/account/api)
|
||||
2. Enable "API Access" on the domains, press on "Details" and check the "API Access" settings on the desires domains.
|
||||
2. Enable "API Access" on the domains, press on "Details" and check the "API Access" settings on the desired domains.
|
||||
3. Execute the script, it will prompt for your API credentials the first time you launch it. The configuration file is saved on the same location as is the script.
|
||||
|
||||
> The generated file is in plain text, with 600 (rw-------) permission.
|
||||
|
@@ -8,7 +8,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
# Environment file with API_KEY and SECRET_KEY
|
||||
ENV_FILE="$SCRIPT_DIR/.env"
|
||||
VERSION="0.4.0"
|
||||
VERSION="0.4.1"
|
||||
|
||||
# Porkbun API base url
|
||||
BASE_URL=https://api.porkbun.com/api/json/v3
|
||||
@@ -331,7 +331,7 @@ function handle_dns_help {
|
||||
echo "Commands:"
|
||||
echo " $DNS_CREATE_RECORD Create a DNS record"
|
||||
echo " $HANDLE_DNS_EDIT Edit DNS record(s)"
|
||||
echo " $HANDLE_DNS_DELETE Delete a DNS record"
|
||||
echo " $HANDLE_DNS_DELETE Delete DNS record(s)"
|
||||
echo " $HANDLE_DNS_LIST List DNS record(s)"
|
||||
}
|
||||
|
||||
@@ -459,13 +459,13 @@ function dns_edit_record_help {
|
||||
echo
|
||||
echo "Options:"
|
||||
echo " $PARAM_DOMAIN_SHORT, $PARAM_DOMAIN"
|
||||
echo " The domain for the record being created."
|
||||
echo " The domain of the record being edited."
|
||||
echo " $PARAM_ID_SHORT, $PARAM_ID"
|
||||
echo " The ID of the record."
|
||||
echo " $PARAM_NAME_SHORT, $PARAM_NAME (optional)"
|
||||
echo " The subdomain for the record being created, not including the domain itself. Leave blank to create a record on the root domain. Use * to create a wildcard record."
|
||||
echo " The subdomain of the record being edited, not including the domain itself. Leave blank to edit a record on the root domain. Use * to edit a wildcard record."
|
||||
echo " $PARAM_TYPE_SHORT, $PARAM_TYPE"
|
||||
echo " The type of record being created. Valid types are: A, MX, CNAME, ALIAS, TXT, NS, AAAA, SRV, TLSA, CAA"
|
||||
echo " The type of record being edited. Valid types are: A, MX, CNAME, ALIAS, TXT, NS, AAAA, SRV, TLSA, CAA"
|
||||
echo " $PARAM_CONTENT_SHORT, $PARAM_CONTENT"
|
||||
echo " The answer content for the record. Please see the DNS management popup from the domain management console for proper formatting of each record type."
|
||||
echo " $PARAM_TTL_SHORT, $PARAM_TTL (optional)"
|
||||
@@ -558,11 +558,11 @@ function dns_edit_records_help {
|
||||
echo
|
||||
echo "Options:"
|
||||
echo " $PARAM_DOMAIN_SHORT, $PARAM_DOMAIN"
|
||||
echo " The domain for the record being created."
|
||||
echo " The domain of the record being edited."
|
||||
echo " $PARAM_TYPE_SHORT, $PARAM_TYPE"
|
||||
echo " The type of record being created. Valid types are: A, MX, CNAME, ALIAS, TXT, NS, AAAA, SRV, TLSA, CAA"
|
||||
echo " The type of record being edited. Valid types are: A, MX, CNAME, ALIAS, TXT, NS, AAAA, SRV, TLSA, CAA"
|
||||
echo " $PARAM_NAME_SHORT, $PARAM_NAME (optional)"
|
||||
echo " The subdomain for the record being created, not including the domain itself. Leave blank to create a record on the root domain. Use * to create a wildcard record."
|
||||
echo " The subdomain of the record being edited, not including the domain itself. Leave blank to edit a record on the root domain. Use * to edit a wildcard record."
|
||||
echo " $PARAM_CONTENT_SHORT, $PARAM_CONTENT"
|
||||
echo " The answer content for the record. Please see the DNS management popup from the domain management console for proper formatting of each record type."
|
||||
echo " $PARAM_TTL_SHORT, $PARAM_TTL (optional)"
|
||||
@@ -839,8 +839,8 @@ function handle_dns_list_help {
|
||||
echo "Usage: $0 $HANDLE_DNS $HANDLE_DNS_LIST <command>"
|
||||
echo
|
||||
echo "Commands:"
|
||||
echo " $DNS_LIST_RECORD List a DNS record by Domain and ID"
|
||||
echo " $DNS_LIST_RECORDS List DNS records by Domain, Subdomain, and Type"
|
||||
echo " $DNS_LIST_RECORD List DNS records by Domain and ID"
|
||||
echo " $DNS_LIST_RECORDS List DNS records by Domain, Type, and Subdomain"
|
||||
}
|
||||
|
||||
DNS_LIST_RECORD="record"
|
||||
|
Reference in New Issue
Block a user