hcloud-upload-image/cmd
Julian Tölle 7881832a54 fix(cli): completion requires HCLOUD_TOKEN
The current setup of the CLI requires the user to set HCLOUD_TOKEN for
every single invocation of the binary. Even if we just want to
autocomplete some arguments or even generate the completion scripts in
CI.

This fixes the bug by only initializing the hcloud-go client in the
"cleanup" and "upload" subcommands.
2024-05-10 18:05:18 +02:00
..
cleanup.go fix(cli): completion requires HCLOUD_TOKEN 2024-05-10 18:05:18 +02:00
root.go fix(cli): completion requires HCLOUD_TOKEN 2024-05-10 18:05:18 +02:00
upload.go fix(cli): completion requires HCLOUD_TOKEN 2024-05-10 18:05:18 +02:00