This commit is contained in:
Nox Sluijtman 2024-04-29 19:42:03 +02:00
parent bc942a3432
commit 5d450a90da
3 changed files with 29 additions and 22 deletions

View file

@ -1,6 +1,8 @@
#!/usr/bin/env nu
def main [url: string, --return(-r)] {
def main [url: string
, --return(-r) # Returns given url as YouTube url
] {
let parsed_url = $url | url parse
let yt_url = if ($parsed_url.path | str contains '/watch') {

5
port.nu Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env nu
def main [] {
random int 0..65535
}