<filename>valardagger/cli.py<gh_stars>0
"""
Command-line interface for valar-dagger.
"""

from __future__ import annotations

import logging
from pathlib import Path

import typer

from valardagger.watcher import Watcher


logger = logging.getLogger(__package__)
cli = typer.Typer()


@cli.command()
def start(path: Path) -> None:
    """
    Starts the scheduler.
    """
    with Watcher(path):
        logger.info(f"Started watching at {path}")


@cli.command()
def backup(name: str) -> None:
    """
    Runs a backup configuration.
    """


if __name__ == "__main__":
    cli()

<filename>valardagger/cli.py<gh_stars>0
"""
Command-line interface for valar-dagger.
"""

from __future__ import annotations

import logging
from pathlib import Path

import typer

from valardagger.watcher import Watcher


logger = logging.getLogger(__package__)
cli = typer.Typer()


@cli.command()
def start(path: Path) -> None:
    """
    Starts the scheduler.
    """
    with Watcher(path):
        logger.info(f"Started watching at {path}")


@cli.command()
def backup(name: str) -> None:
    """
    Runs a backup configuration.
    """


if __name__ == "__main__":
    cli()

Command-line interface for valar-dagger. Starts the scheduler. Runs a backup configuration.