Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Export command option types #686

Merged
merged 2 commits into from
Sep 9, 2020

Conversation

darkowlzz
Copy link
Contributor

Ignite command functions accept unexported types like startOptions,
createOptions, etc. This makes the cmd/ignite/run package unusable for
projects that import ignite.
IDEs warn about unexported return type for functions like
NewStartOptions(), NewCreateOptions(), etc.
This change makes those option types public.

Ignite command functions accept unexported types like `startOptions`,
`createOptions`, etc. This makes the cmd/ignite/run package unusable for
projects that import ignite.
IDEs warn about unexported return type for functions like
`NewStartOptions()`, `NewCreateOptions()`, etc.
This change makes those option types public.
@stealthybox
Copy link
Contributor

I'm fine with this, especially since our implementations are currently too conflated with the cobra command setup code.

We don't promise these types will be stable, but folks can pin to our releases, and exposing them allows others to build cool things.

@stealthybox stealthybox merged commit 8070e7c into weaveworks:master Sep 9, 2020
@darkowlzz darkowlzz deleted the export-cmd-opts branch September 9, 2020 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants