GoToolSharing / htb-cli

Interact with Hackthebox using your terminal - Be faster and more competitive !
https://github.com/GoToolSharing/htb-cli
GNU General Public License v3.0
86 stars 6 forks source link

[BUG] Discord webhook with version command #87

Closed QU35T-code closed 9 months ago

QU35T-code commented 9 months ago

To Reproduce Steps to reproduce the behavior:

❯ go run . version
Development version (dev branch): e5af44560704ff06973d3c8b12f036b9fc1dbd75
2024-01-05T15:06:38.438+0100    ERROR   cmd/version.go:29       {"error": "failed to send request: Post \"False\": unsupported protocol scheme \"\""}
github.com/GoToolSharing/htb-cli/cmd.glob..func14
    /Users/qu35t/Documents/Perso/htb-cli/cmd/version.go:29
github.com/spf13/cobra.(*Command).execute
    /Users/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:876
github.com/spf13/cobra.(*Command).ExecuteC
    /Users/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990
github.com/spf13/cobra.(*Command).Execute
    /Users/qu35t/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
github.com/GoToolSharing/htb-cli/cmd.Execute
    /Users/qu35t/Documents/Perso/htb-cli/cmd/root.go:32
main.main
    /Users/qu35t/Documents/Perso/htb-cli/main.go:8
runtime.main
    /usr/local/go/src/runtime/proc.go:267
exit status 1
QU35T-code commented 9 months ago

Fixed