"""NAS management commands (parent group)."""

from __future__ import annotations

import typer

from verge_cli.commands import (
    nas_cifs,
    nas_files,
    nas_nfs,
    nas_service,
    nas_sync,
    nas_user,
    nas_volume,
    nas_volume_snapshot,
)

app = typer.Typer(
    name="nas",
    help="Manage NAS services, volumes, and shares.",
    no_args_is_help=True,
)

app.add_typer(nas_service.app, name="service")

# Volume commands with snapshot sub-typer
nas_volume.app.add_typer(nas_volume_snapshot.app, name="snapshot")
app.add_typer(nas_volume.app, name="volume")

app.add_typer(nas_cifs.app, name="cifs")
app.add_typer(nas_nfs.app, name="nfs")
app.add_typer(nas_user.app, name="user")
app.add_typer(nas_sync.app, name="sync")
app.add_typer(nas_files.app, name="files")
