bdfr: search helper
This commit is contained in:
parent
7751fcda27
commit
dcc960898a
1 changed files with 10 additions and 0 deletions
|
@ -21,4 +21,14 @@ def "main user" [
|
||||||
http get $url | ignore
|
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 [] {}
|
def main [] {}
|
||||||
|
|
Loading…
Reference in a new issue