|
|
@ -142,10 +142,14 @@ impl MPS { |
|
|
|
|
|
|
|
|
|
|
|
fn list(&mut self) -> io:: Result<()> { |
|
|
|
fn list(&mut self) -> io:: Result<()> { |
|
|
|
self.login()?; |
|
|
|
self.login()?; |
|
|
|
let st = self.storage.as_ref().unwrap(); |
|
|
|
let ids = self.storage.as_ref().unwrap().ids(); |
|
|
|
for id in st.ids() { |
|
|
|
if ids.len() == 0 { |
|
|
|
|
|
|
|
println!("No items"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
for id in ids { |
|
|
|
println!("{}", id); |
|
|
|
println!("{}", id); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
Ok(()) |
|
|
|
Ok(()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|