Closed rebornplusplus closed 3 weeks ago
We could say above what the available releases are or point the user to the repository so he can see the branch names. Because the error messages were not introduced as part of this PR, I think it is best to create an issue and address it in the future, do you agree?
I agree. I will create an issue for this after this PR is closed.
Had a high level discussion with @niemeyer about the search functionality. We agreed that for the first iteration we should try to keep things simple but also make the UX feel natural to the user.
To achieve that we are going to use a string distance of 1 to see if two strings match. Additionally, we are going to take each term passed to the CLI (i.e. chisel find <term1> <term2> ...
) and try to match those against package name or slice name but the important thing is that all of the terms have to match in order to add that slice to the results.
This PR adds the
find
command which can be used to query the chisel releases for available slices.Examples
Please let me know what you think of the changes. I think I could use some suggestions with naming overall, and particularly the value of
maxStrDist
constant and logic inmatchSlice
in/cmd/chisel/cmd_find.go
.