diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 3092c43..4c3d5d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,6 +42,15 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { appimage.remove().await?; } + Command::List => { + let mut appimages = fs::read_dir(index_dir()).await?; + + while let Some(appimage) = appimages.next_entry().await? { + if let Some(name) = appimage.file_name().to_str() { + println!("- {}", name.strip_suffix(".json").unwrap()); + } + } + } }; Ok(()) |
