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

completion: make completion code generation independent on auth status #225

Merged
merged 1 commit into from
May 17, 2017

Conversation

xmudrii
Copy link
Contributor

@xmudrii xmudrii commented Apr 28, 2017

This PR makes completion code generation independent on auth status.
With current code, if you try to generate completion code before you authenticate with doctl and DO, it will show following error:

Error: unable to initialize DigitalOcean api client: access token is required. (hint: run 'doctl auth init')

This makes problem in case we want to integrate code generation into package managers such as brew and snap.

Using cmdBuilderWithInit seems to fix the problem if it's appropriate use for that builder.

/cc @mauricio

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.

2 participants