Skip to content

Commit 997b74d

Browse files
authored
Merge pull request #52 from ac0d3r/main
fix(init): use passed-in type when creating config
2 parents d93ecd4 + 4c9fde2 commit 997b74d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

cmd/init.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ package cmd
22

33
import (
44
"encoding/json"
5-
"github.com/nsecho/furlzz/internal/config"
6-
"github.com/spf13/cobra"
75
"os"
6+
7+
"github.com/spf13/cobra"
8+
9+
"github.com/nsecho/furlzz/internal/config"
810
)
911

1012
const (
@@ -67,7 +69,7 @@ var initCmd = &cobra.Command{
6769
Timeout: 1,
6870
WorkingDir: ".",
6971
Function: "url",
70-
Type: defaultType,
72+
Type: tp,
7173
Fuzz: dt,
7274
}
7375

0 commit comments

Comments
 (0)