song

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

song download 命令:从 flag 解析到文件落盘的端到端垂直切片(PRD-0013 Phase C)。

流程:URL(拿直链) → Detail(拿歌名/封面) → songdl.DownloadOne(文件名→mkdir→ 冲突→下载→元数据)→ 渲染输出。

下载核心已下沉到 internal/cli/songdl 包(song 与 playlist 命令共享)。 本文件只做 song 命令专属的 flag 编排 + endpoint 调用 + 结果渲染。

本切片交付主干(--id/--level/--out/--force); --dry-run/--no-metadata/--filename/位置参数/.part 续传留给 issue #24。

Package song 提供歌曲相关命令。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(k *kit.Kit) *cobra.Command

NewCommand 创建 song 命令组。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL