Closed M09Ic closed 1 year ago
Please split this PR into multiple PRs according to the content to submit. This PR now looks messy and introduces crashes.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x841fd2]
goroutine 1 [running]:
github.com/zu1k/nali/pkg/entity.ParseLine({0xc000030190, 0xe})
/home/alex/projects/nali/pkg/entity/parse.go:59 +0x6f2
github.com/zu1k/nali/cmd.glob..func2(0xca3b00?, {0xcdc358, 0x0, 0x0})
/home/alex/projects/nali/cmd/root.go:82 +0x3d4
github.com/spf13/cobra.(*Command).execute(0xca3b00, {0xc000118200, 0x0, 0x0})
/home/alex/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:944 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xca3b00)
/home/alex/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/home/alex/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
github.com/zu1k/nali/cmd.Execute()
/home/alex/projects/nali/cmd/root.go:99 +0x25
main.main()
/home/alex/projects/nali/main.go:14 +0x2c
I will do a quick review before closing this PR.
Please split this PR and modify it as suggested, thank you. @M09Ic @JasonTtu
cat 1.txt | nali --json
cat 1.txt | nali --jsonline
(One json per line)