Skip to content

Commit

Permalink
Fix: get hq command
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB committed Jul 22, 2024
1 parent ed7728d commit f5c4625
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func getCMDs() *cobra.Command {
}

getCMDsFlags(getCmd)
getHQCmdFlags(getHQCmd)

getCmd.AddCommand(getURLCmd)
getCmd.AddCommand(getHQCmd)
Expand Down
5 changes: 5 additions & 0 deletions cmd/get_hq.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ func getHQCmdFlags(getHQCmd *cobra.Command) {
getHQCmd.PersistentFlags().Bool("hq-continuous-pull", false, "If turned on, the crawler will pull URLs from Crawl HQ continuously.")
getHQCmd.PersistentFlags().String("hq-strategy", "lifo", "Crawl HQ feeding strategy.")
getHQCmd.PersistentFlags().Bool("hq-rate-limiting-send-back", false, "If turned on, the crawler will send back URLs that hit a rate limit to crawl HQ.")

getHQCmd.MarkPersistentFlagRequired("hq-address")
getHQCmd.MarkPersistentFlagRequired("hq-key")
getHQCmd.MarkPersistentFlagRequired("hq-secret")
getHQCmd.MarkPersistentFlagRequired("hq-project")
}

0 comments on commit f5c4625

Please sign in to comment.