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
Add Fig integration #3328
Comments
can't goreleaser users do something like I really dislike having a PR for this every time I change anything, even if its automated... seems backwards, to say the least |
This PR releates to #3328 and fix the first part of the doings in the issue
Good question, maybe need to ask @fedeci for help! Maybe I missed a part in the integration guide! |
Thanks for the ping @dirien! Of course the integration can be used as you mean. Essentially we expose two main methods:
We can bind the second one to "goreleaser completion fig" in the github action use it easily. |
ok, so, is it possible to run if so, which path? |
I started to implement the "high level" version so is the "low level" version better as not inversive to the code base? How does the "low level" works? Any link to the docs, as I could find this in the current docs. But maybe it's me and i searched for the wrong subject! |
@caarlos0 Fig does not pick local paths for specs but we rely on specs being served from a cdn, so everything that we want to be public needs to be pushed to the https://github.com/withfig/autocomplete repo. |
@dirien the high level is the This code should work: var cmd = &cobra.Command{
Use: "completion",
}
cmd.AddCommand(cobracompletefig.CreateCompletionSpecCommand(cobracompletefig.Opts {
Use: "fig"
})) |
closes #3328 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is your feature request related to a problem? Please describe.
This enhancement will be in two steps:
Add Fig autocomplete function with the suggested way described here -> https://fig.io/docs/guides/integrating/getting-started
Will introduce the autopush function for the
goreleaser
spec in the fig autocomplete repository -> https://fig.io/docs/guides/integrating/push-to-autocomplete-actionDescribe the solution you'd like
Full automatic creation of the fig spec
Describe alternatives you've considered
Currently I created the Spec by hand -> withfig/autocomplete#1096
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: