hcloud-upload-image/cmd
Julian Tölle bb2ca48200
fix(cli): completion requires HCLOUD_TOKEN (#19)
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:06:38 +02:00
..
cleanup.go fix(cli): completion requires HCLOUD_TOKEN (#19) 2024-05-10 18:06:38 +02:00
root.go fix(cli): completion requires HCLOUD_TOKEN (#19) 2024-05-10 18:06:38 +02:00
upload.go fix(cli): completion requires HCLOUD_TOKEN (#19) 2024-05-10 18:06:38 +02:00