Compare commits
No commits in common. "fbb59e80f16c85b56907874547b37defef9b1a96" and "a77c2c456805efaec11233a77de735204523771e" have entirely different histories.
fbb59e80f1
...
a77c2c4568
2 changed files with 7 additions and 17 deletions
|
@ -67,6 +67,10 @@ in
|
||||||
p.erlang
|
p.erlang
|
||||||
p.fennel
|
p.fennel
|
||||||
p.fish
|
p.fish
|
||||||
|
p.git_rebase
|
||||||
|
p.gitattributes
|
||||||
|
p.gitcommit
|
||||||
|
p.gitignore
|
||||||
p.graphql
|
p.graphql
|
||||||
p.heex
|
p.heex
|
||||||
p.html
|
p.html
|
||||||
|
|
|
@ -1,24 +1,10 @@
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
|
|
||||||
let base_url = "https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?"
|
def main [
|
||||||
|
--subreddit: string
|
||||||
def "main subreddit" [
|
|
||||||
subreddit: string
|
|
||||||
--sort: string = "hot"
|
--sort: string = "hot"
|
||||||
--limit: int = 999
|
|
||||||
] {
|
] {
|
||||||
let url = $"($base_url)args[subreddit]=($subreddit)&args[sort]=($sort)&args[limit]=($limit)"
|
let url = $"https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?args[subreddit]=($subreddit)&args[sort]=($sort)"
|
||||||
|
|
||||||
http get $url | ignore
|
http get $url | ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
def "main user" [
|
|
||||||
user: string
|
|
||||||
--limit: int = 9999
|
|
||||||
] {
|
|
||||||
let url = $"($base_url)args[user]=($user)&args[limit]=($limit)"
|
|
||||||
|
|
||||||
http get $url | ignore
|
|
||||||
}
|
|
||||||
|
|
||||||
def main [] {}
|
|
||||||
|
|
Loading…
Reference in a new issue