We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capture
The program panics when running harpoon capture -f main.doSomething without specifying a command to run. Eg.
harpoon capture -f main.doSomething
panic: runtime error: index out of range [0] with length 0 goroutine 1 [running]: github.com/alegrey91/harpoon/cmd.glob..func1(0xc000148100?, {0xc00007a140, 0x0, 0x5}) /home/runner/work/harpoon/harpoon/cmd/capture.go:113 +0x13f5 github.com/spf13/cobra.(*Command).execute(0x874020, {0xc00007a0f0, 0x5, 0x5}) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:987 +0xaa3 github.com/spf13/cobra.(*Command).ExecuteC(0x874300) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1115 +0x3ff github.com/spf13/cobra.(*Command).Execute(...) /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1039 github.com/alegrey91/harpoon/cmd.Execute() /home/runner/work/harpoon/harpoon/cmd/root.go:37 +0x1a main.main() /home/runner/work/harpoon/harpoon/main.go:21 +0xf
This is because the code is not checking if we have enough arguments in input to run.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The program panics when running
harpoon capture -f main.doSomething
without specifying a command to run.Eg.
This is because the code is not checking if we have enough arguments in input to run.
The text was updated successfully, but these errors were encountered: