vdl 0.1.4

A fast, interactive terminal video downloader for YouTube, TikTok, Instagram, Twitter and Spotify
use anyhow::Result;

use crate::cli::CommonArgs;

use super::{run_common_platform, Platform};

/// Runs the TikTok command for direct URL downloads.
///
/// This handler reads the shared platform flags from [`CommonArgs`], prints the metadata preview,
/// prompts for confirmation when enabled, and writes the final file to the configured output path.
///
/// # Arguments
///
/// * `args` - Parsed CLI arguments from `vdl tk`.
///
/// # Errors
///
/// Returns an error if configuration loading, metadata fetching, or download execution fails.
pub async fn run(args: CommonArgs) -> Result<()> {
    run_common_platform(Platform::TikTok, args).await
}