1
0
Fork 0

bdfr: search helper

This commit is contained in:
Daniel Kempkens 2024-04-17 09:56:43 +02:00
parent 7751fcda27
commit dcc960898a
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -21,4 +21,14 @@ def "main user" [
http get $url | ignore
}
def "main search" [
subreddit: string
search: string
--limit: int = 9999
] {
let url = $"($base_url)args[subreddit]=($subreddit)&args[search]=($search)&args[limit]=($limit)"
http get $url | ignore
}
def main [] {}