feat(cli): add timeout flag

This commit is contained in:
Mathis Maquenne
2025-05-01 20:45:27 +02:00
parent 0bae78a1ff
commit 67af80403b
3 changed files with 7 additions and 3 deletions
+2
View File
@@ -2,6 +2,7 @@ package downloader
import (
"fmt"
"time"
)
var validQualities = map[string]bool{
@@ -14,6 +15,7 @@ var validQualities = map[string]bool{
type Options struct {
OutputDir string
Quality string
Timeout time.Duration
}
func (o *Options) Validate(appDir string) error {