mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
feat: add non-interactive cache editting
This commit is contained in:
parent
a8e45ff1b4
commit
0d6cfdec2b
3 changed files with 97 additions and 13 deletions
|
|
@ -30,7 +30,7 @@ var CrawlCmd = &cobra.Command{
|
|||
Args: func(cmd *cobra.Command, args []string) error {
|
||||
// Validate that the only argument is a valid URI
|
||||
var err error
|
||||
if err := cobra.ExactArgs(1)(cmd, args); err != nil {
|
||||
if err = cobra.ExactArgs(1)(cmd, args); err != nil {
|
||||
return err
|
||||
}
|
||||
args[0], err = urlx.Sanitize(args[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue