ytui/cmd/dummytdl/main.go
2022-06-28 23:02:53 -04:00

33 lines
499 B
Go

package main
import (
"flag"
"fmt"
"os"
"time"
)
func main() {
var op string
var title string
flag.StringVar(&op, "output", "", "path to save file")
flag.StringVar(&title, "get-title", "", "title")
flag.Bool("newline", false, "sdlkfjdslkfj")
flag.Parse()
if title != "" {
fmt.Println("Dummy title")
return
}
os.WriteFile(op, []byte("slkfjsdlkfdjkfj"), 0644)
i := 0
for range time.Tick(1 * time.Second) {
fmt.Printf("Hello msg %d\n", i)
i++
if i == 7 {
break
}
}
}