We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea99747 commit cbf942aCopy full SHA for cbf942a
1 file changed
src/cmd/orphans.rs
@@ -18,6 +18,7 @@ use crate::collection::Collection;
18
use crate::error::Fallible;
19
use crate::types::card_hash::CardHash;
20
21
+/// Print the hashes of orphan cards.
22
pub fn list_orphans(directory: Option<String>) -> Fallible<()> {
23
let coll = Collection::new(directory)?;
24
let orphans: Vec<CardHash> = get_orphans(&coll)?;
@@ -28,6 +29,7 @@ pub fn list_orphans(directory: Option<String>) -> Fallible<()> {
28
29
Ok(())
30
}
31
32
+/// Delete orphan card data in the database.
33
pub fn delete_orphans(directory: Option<String>) -> Fallible<()> {
34
let mut coll = Collection::new(directory)?;
35
0 commit comments