feat(cli): simplify output for individual songs

This commit is contained in:
Mathis Maquenne
2025-09-10 11:10:52 +02:00
parent 9b23e3a8d9
commit c2b4fcfa11
4 changed files with 27 additions and 25 deletions
+4 -5
View File
@@ -78,12 +78,11 @@ func newDownloadCmd(resourceType string) *cobra.Command {
},
}
if resourceType == "artist" {
cmd.Flags().IntVarP(&opts.Limit, "limit", "l", 10, "number of songs to download")
switch resourceType {
case "artist":
cmd.Short = "Download top songs from an artist"
}
if resourceType == "track" {
cmd.Flags().IntVarP(&opts.Limit, "limit", "l", 10, "number of songs to download")
case "track":
cmd.Short = "Download a single track"
}