mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: add command metadata
This commit is contained in:
9
main.go
9
main.go
@@ -39,6 +39,15 @@ func main() {
|
||||
return err
|
||||
},
|
||||
},
|
||||
&cli.Command{
|
||||
Name: "metadata",
|
||||
Aliases: []string{"m"},
|
||||
Usage: "view song metadata",
|
||||
Action: func(ctx context.Context, cmd *cli.Command) error {
|
||||
url := cmd.Args().First()
|
||||
return pkg.PrintMetadata(application, url)
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
if err := cmd.Run(context.Background(), os.Args); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user