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
87 stars 6 forks source link

[FEAT] --no-check flag to avoid checking for new updates #95

Closed QU35T-code closed 11 months ago

QU35T-code commented 11 months ago

Is your feature request related to a problem? Please describe. Sometimes, the github API no longer responds and this blocks the use of htb-cli.

Describe the solution you'd like A global --no-check flag can be added to avoid checking for new updates.

QU35T-code commented 11 months ago
> go run . version -vv
2024-01-08T08:21:41.130+0100    DEBUG   cmd/root.go:24  Verbosity level : 2
2024-01-08T08:21:41.130+0100    INFO    config/config.go:180    Loading configuration file...
2024-01-08T08:21:41.130+0100    INFO    config/config.go:186    Configuration successfully loaded
2024-01-08T08:21:41.130+0100    DEBUG   config/config.go:187    map[Discord:https://discord.com/api/webhooks/********/********** Update:False]
2024-01-08T08:21:41.130+0100    DEBUG   cmd/root.go:30  Check for updates : false
2024-01-08T08:21:41.130+0100    DEBUG   update/update.go:16 config.Version: 395883f75ab40db134f940c627d5b19b66c792c5
2024-01-08T08:21:41.130+0100    INFO    update/update.go:18 Development version detected
2024-01-08T08:21:41.130+0100    INFO    utils/utils.go:479  Sending an HTTP request
2024-01-08T08:21:41.130+0100    DEBUG   utils/utils.go:480  Request URL: https://api.github.com/repos/GoToolSharing/htb-cli/commits?sha=dev