-
Notifications
You must be signed in to change notification settings - Fork 246
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
Switch to using Engines for the engine parameter #571
Conversation
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.
I think we also want this for the migrate
and head
commands?
pkg/cmd/datastore/datastore.go
Outdated
engines := append([]string{}, datastore.Engines...) | ||
sort.Strings(engines) // Sort for stability. |
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.
engines := append([]string{}, datastore.Engines...) | |
sort.Strings(engines) // Sort for stability. | |
sort.Strings(datastore.Engines) // Sort for stability. |
I don't think we really care if the original list gets sorted?
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.
I'd rather not change it, as its defined to be "static", for lack of a better term.
bbd7229
to
35b2f30
Compare
@ecordell Updated |
35b2f30
to
f005c1a
Compare
@@ -13,6 +14,13 @@ import ( | |||
|
|||
var Engines = []string{} | |||
|
|||
// SortedEngineIDs returns the full set of engine IDs, sorted. | |||
func SortedEngineIDs() []string { | |||
engines := append([]string{}, Engines...) |
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.
This will drop the quotes around each engine. Previously it was
"memory", "postgres" ...
But now it will be
memory, postgres ...
Nothing blocking, but it will look different from other flags that list valid options.
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.
Fixed
f005c1a
to
5aeb1e8
Compare
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.
LGTM
No description provided.