This commit is contained in:
Josh at WLTechBlog
2025-12-31 17:13:17 -07:00
parent f09cdc2973
commit ec391bd7ed
4 changed files with 301 additions and 200 deletions

View File

@@ -70,14 +70,14 @@ func main() {
// Define flags for each subcommand
// open-tab flags
openTabTimeout := openTabCmd.Int("timeout", 5, "Timeout in seconds for opening the tab")
openTabTimeout := openTabCmd.Int("timeout", 30, "Timeout in seconds for opening the tab")
openTabHost := openTabCmd.String("host", "localhost", "Daemon host")
openTabPort := openTabCmd.Int("port", 8989, "Daemon port")
// load-url flags
loadURLTabID := loadURLCmd.String("tab", "", "Tab ID to load URL in (optional, uses current tab if not specified)")
loadURLTarget := loadURLCmd.String("url", "", "URL to load")
loadURLTimeout := loadURLCmd.Int("timeout", 5, "Timeout in seconds for loading the URL")
loadURLTimeout := loadURLCmd.Int("timeout", 30, "Timeout in seconds for loading the URL")
loadURLHost := loadURLCmd.String("host", "localhost", "Daemon host")
loadURLPort := loadURLCmd.Int("port", 8989, "Daemon port")