alegrey91 / harpoon

🔍 Trace syscalls from user-space functions, by using eBPF
Apache License 2.0
88 stars 3 forks source link

move commands under `cmd/` to return an error #26

Closed alegrey91 closed 2 months ago

alegrey91 commented 2 months ago

Currently the commands under cmd/ are using the Run function to fill the cobra.Command{} struct. This doesn't allow the program to return an error. What should be done is to move each command to use the RunE function and return a error instead of printing it and then os.Exit.