add python support

This commit is contained in:
steven-omaha
2023-02-27 19:39:25 +01:00
parent 7c4741753e
commit 184f86ebae
6 changed files with 81 additions and 4 deletions
@@ -24,6 +24,12 @@ impl From<String> for Package {
}
}
impl From<&str> for Package {
fn from(value: &str) -> Self {
Self::from(value.to_string())
}
}
impl Package {
fn split_into_name_and_repo(s: &str) -> (String, Option<String>) {
let mut iter = s.split('/').rev();