#!/bin/bash

# Validation Commands Handler
# Handles all validation subcommands by calling core functions

cliHandleValidationCommands()
{
    local action="$initial_command2"
    local app_name="$initial_command3"
    
    case "$action" in
        "app")
            if [[ -z "$app_name" ]]; then
                isNotice "No app provided."
                cliShowValidationHelp
            else
                validateAppConfiguration "$app_name"
            fi
            ;;
            
        "system")
            validateSystemConfiguration
            ;;
            
        "all")
            validateAllConfigurations
            ;;
            
        "status")
            tagsValidateShowValidationStatus
            ;;
            
        *)
            isNotice "Invalid validation command: $action"
            cliShowValidationHelp
            ;;
    esac
}
