Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ls artist name inference #33

Open
adamrdrew opened this issue Jun 7, 2022 · 0 comments
Open

ls artist name inference #33

adamrdrew opened this issue Jun 7, 2022 · 0 comments

Comments

@adamrdrew
Copy link
Owner

We should be able to do:

$ mosh ls artist iamx

Without ever adding a shortcut for "iamx" because if we search for that artist we get only one artist back. We should allow inferring names by doing a search first and then using the result. More expensive, but we can decide its valid to infer if the input is purely numeric.

So

$ mosh ls artist 1234

We just do what we do now.

$ mosh ls artist iamx

"iamx" can't convert into a number, so we do an artist search. We get one result. We pull out the artist ID and then we search.

If the user provides a search that isn't unique enough just tell them:

$ mosh ls artist quartet
More than one artist matching "quartet" found. Please use an ID:
+-------+------------------------+----------+
| ID    | TITLE                  | SHORTCUT |
+-------+------------------------+----------+
| 31177 | The Section Quartet    |          |
| 2466  | Vitamin String Quartet |          |
+-------+------------------------+----------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant