forked from Mirrors/cloudflare-ddns-docker
Add dotenv support
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
This commit is contained in:
@ -1,13 +1,14 @@
|
|||||||
import logging
|
import logging
|
||||||
from os import environ
|
from os import environ
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
import click
|
import click
|
||||||
from cloudflare_ddns.app import ApplicationJob
|
from cloudflare_ddns.app import ApplicationJob
|
||||||
from cloudflare_ddns.constants import BASE_ENV_VAR, DEFAULT_DELAY, DOMAINS_ENV_VAR
|
from cloudflare_ddns.constants import BASE_ENV_VAR, DEFAULT_DELAY, DOMAINS_ENV_VAR
|
||||||
|
|
||||||
log = logging.getLogger("ddns")
|
log = logging.getLogger("ddns")
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.option(
|
@click.option(
|
||||||
|
Reference in New Issue
Block a user