Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): completion requires HCLOUD_TOKEN #19

Merged
merged 1 commit into from
May 10, 2024
Merged

Conversation

apricote
Copy link
Owner

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.

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.
@apricote apricote self-assigned this May 10, 2024
@apricote apricote merged commit bb2ca48 into main May 10, 2024
3 checks passed
@apricote apricote deleted the fix-completion branch May 10, 2024 16:06
apricote added a commit that referenced this pull request May 10, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.2.1](v0.2.0...v0.2.1)
(2024-05-10)


### Bug Fixes

* **cli:** completion requires HCLOUD_TOKEN
([#19](#19))
([bb2ca48](bb2ca48))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant