-
Notifications
You must be signed in to change notification settings - Fork 391
completions: add "show-changelog" to slackpkg completion #531
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
Conversation
This is newly supported in slackpkg-15.0.x Signed-off-by: Robby Workman <rworkman@slackware.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patch! Have you noticed the following sentence in CONTRIBUTING.md?
For example, we generally do not want to hardcode lists of available command options and their completions, because they quite probably vary between versions of the completed command, and therefore resort to scraping --help output and the like.
If we would include the completion for version-dependent options, I think we want to check the version of the command. Can you update it to check the output of --help
and conditionally add the new option? Or, if it is difficult, maybe you can extract the version and check that the version is 15.0.x or higher.
I am slackpkg upstream maintainer also. Given how the Slackware ecosystem functions, there's little to no reasonable likelihood of a user having a bash-completion release new enough to support this new option and a slackpkg version that is not also new enough. |
I'm not familiar with Slackware, but I don't see the logic. That seems to be true only when that Also, if you are a maintainer of Edit: Fortunately, we share the license GPL v2, so I guess it shouldn't be a problem to migrate the completion script into |
Building and installing to e.g. /usr/local is certainly supported, but it's not at all recommended for software that's packaged by the distribution (and bash-completion falls in that category). If a user installs bash-completion from github (instead of from the distribution package) tomorrow and something breaks, that's on the user and it's what we call a learning experience :-) |
@GArik and @scop and you all have commits that touch the slackpkg completion file; how would you all like to see this imported into the slackpkg repo? I'm amenable to importing the initial file and walking through each of the changes since then if that would be preferred... |
Moving the completion to slackpkg is a great idea. Especially if you are going to maintain both the code and the bash completion :) |
The only drawback I can think of is that moving tests to another project would be rather difficult. |
@rworkman @GArik Thank you for the update and comments! @scop What do you think of moving
Hm, are you talking about reconstructing the commits by
You may use
Yes, that is one problem. Currently, the test seems to check just that it produces at least one completion for |
I'm all for moving the file over to slackpkg, thanks! As said, the tests are the biggest "loss" in doing that, but IMO the benefits outweigh that. The branch looks good, added one cosmetic comment there. I'll rename our slackpkg completion to |
slackpkg 15.0.4 is released, so it's safe to merge the deprecation ; thanks! |
Deprecation merged, thanks! |
This is newly supported in slackpkg-15.0.x
Signed-off-by: Robby Workman rworkman@slackware.com