"""
Workspace initialization commands.

DEPRECATED: This module contains deprecated functionality that has been replaced
by the S3-based upload system.
"""

import typer
from pathlib import Path
from typing import Optional

# Note: Common module removed - functionality simplified

app = typer.Typer(help="Workspace initialization (deprecated)")


@app.command("init")
def initialize_workspace(
    force: bool = typer.Option(False, "--force", help="Force overwrite existing files")
):
    """
    DEPRECATED: Workspace initialization for workspace-based system.
    
    This functionality has been replaced by the S3-based upload system.
    Use the main 'czbillgen init' command instead.
    """
    print("❌ This command has been deprecated")
    print("Workspace initialization has been replaced by the S3-based upload system.")
    print("") 
    print("Please use one of these alternatives:")
    print("  • czbillgen init  # Initialize S3-based workspace")
    print("  • czbillgen list-datasets  # To see available datasets")
    print("")
    print("For more information, see the updated upload documentation.")
    raise typer.Exit(1)