Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Jun 4, 2024
1 parent d227ecb commit c16b2f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xs.nu
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ export def cat [
curl -sN --unix-socket $"($store)/sock" $url | lines | each { from json }
}

export def process [
store: string
callback: closure
] {
let meta = $in
cas $store $meta.hash | do $callback $meta
}

export def stream-get [
store: string
id: string
Expand Down

0 comments on commit c16b2f0

Please sign in to comment.