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