1
0
Fork 0

Compare commits

..

2 commits

Author SHA1 Message Date
fbb59e80f1
bdfr: update script 2023-12-13 21:03:46 +01:00
6c8131159f
nvim: remove broken ts parsers 2023-12-13 21:03:29 +01:00
2 changed files with 17 additions and 7 deletions

View file

@ -67,10 +67,6 @@ in
p.erlang
p.fennel
p.fish
p.git_rebase
p.gitattributes
p.gitcommit
p.gitignore
p.graphql
p.heex
p.html

View file

@ -1,10 +1,24 @@
#!/usr/bin/env nu
def main [
--subreddit: string
let base_url = "https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?"
def "main subreddit" [
subreddit: string
--sort: string = "hot"
--limit: int = 999
] {
let url = $"https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?args[subreddit]=($subreddit)&args[sort]=($sort)"
let url = $"($base_url)args[subreddit]=($subreddit)&args[sort]=($sort)&args[limit]=($limit)"
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 [] {}