Add method to manually add artist metadata #85
@ -47,9 +47,9 @@ enum ArtistCommand {
|
|||||||
Delete(ArtistValue),
|
Delete(ArtistValue),
|
||||||
#[structopt(name = "musicbrainz", about = "Edit the MusicBrainz URL of an artist")]
|
#[structopt(name = "musicbrainz", about = "Edit the MusicBrainz URL of an artist")]
|
||||||
MusicBrainz(UrlCommand<SingleUrlValue>),
|
MusicBrainz(UrlCommand<SingleUrlValue>),
|
||||||
#[structopt(name = "musicbutler", about = "Edit the MusicButler URL of an artist")]
|
#[structopt(name = "musicbutler", about = "Edit the MusicButler URL(s) of an artist")]
|
||||||
MusicButler(UrlCommand<MultiUrlValue>),
|
MusicButler(UrlCommand<MultiUrlValue>),
|
||||||
#[structopt(about = "Edit the Bandcamp URL of an artist")]
|
#[structopt(about = "Edit the Bandcamp URL(s) of an artist")]
|
||||||
Bandcamp(UrlCommand<MultiUrlValue>),
|
Bandcamp(UrlCommand<MultiUrlValue>),
|
||||||
#[structopt(about = "Edit the Qobuz URL of an artist")]
|
#[structopt(about = "Edit the Qobuz URL of an artist")]
|
||||||
Qobuz(UrlCommand<SingleUrlValue>),
|
Qobuz(UrlCommand<SingleUrlValue>),
|
||||||
@ -63,11 +63,11 @@ struct ArtistValue {
|
|||||||
|
|
||||||
#[derive(StructOpt, Debug)]
|
#[derive(StructOpt, Debug)]
|
||||||
enum UrlCommand<T: StructOpt> {
|
enum UrlCommand<T: StructOpt> {
|
||||||
#[structopt(about = "Add URL(s) without overwriting existing values")]
|
#[structopt(about = "Add the provided URL(s) without overwriting existing values")]
|
||||||
Add(T),
|
Add(T),
|
||||||
#[structopt(about = "Remove the provided URL(s)")]
|
#[structopt(about = "Remove the provided URL(s)")]
|
||||||
Remove(T),
|
Remove(T),
|
||||||
#[structopt(about = "Set the provided URL(s) overwriting any previous values")]
|
#[structopt(about = "Set the provided URL(s) overwriting any existing values")]
|
||||||
Set(T),
|
Set(T),
|
||||||
#[structopt(about = "Clear all URL(s)")]
|
#[structopt(about = "Clear all URL(s)")]
|
||||||
Clear(ArtistValue),
|
Clear(ArtistValue),
|
||||||
|
Loading…
Reference in New Issue
Block a user