coffee-tools / coffee

Reference implementation for a flexible core lightning plugin manager
https://docs.page/coffee-tools/coffee
9 stars 13 forks source link

Implement `coffee nurse` Handler for Locally Missing Repository #197

Closed tareknaser closed 1 year ago

netlify[bot] commented 1 year ago

Deploy Preview for coffee-docs canceled.

Name Link
Latest commit 92aa1b28f28628989f9313d90f1ca88db4699156
Latest deploy log https://app.netlify.com/sites/coffee-docs/deploys/651567dd680272000881ee0d
tareknaser commented 1 year ago

I wondered what happens if I delete the repositories directory and not just a sub-directory.

Maybe the directory is a default one and it is always created, right?

Yes, we call

check_dir_or_make_if_missing(format!("{def_path}/repositories")).await?;

with each command

vincenzopalazzo commented 1 year ago
➜  coffee git:(pr197) cargo run --bin coffee -- --network testnet nurse
    Finished dev [unoptimized + debuginfo] target(s) in 0.08s
     Running `target/debug/coffee --network testnet nurse`
╭────────────────────────────────────────────────╮
│ ●   Actions Taken        Affected repositories │
├────────────────────────────────────────────────┤
│ ●   Restored using Git   folgore-git           │
╰────────────────────────────────────────────────╯

Amazing!