Add dotenv support
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s

This commit is contained in:
2024-06-11 18:26:12 -06:00
parent 199763f50e
commit f154083f07

View File

@ -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(