feat: ship every datastore as a core datastore plugin
Adds a `datastore` core plugin that serves every official datastore under one command, with the datastore type as the first argument, as in `dokku datastore:create postgres lollipop`. It is built on the dokku-datastore sdk, and leaves a datastore to its official plugin while that plugin is enabled.
This commit is contained in:
17 files changed
+688
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/dokku/dokku-datastore/sdk"
|
||||
)
|
||||
|
||||
// main answers the help dokku asks every plugin for, and runs any datastore
|
||||
// command dokku found no subcommand for, which is what a datastore's own
|
||||
// commands are
|
||||
func main() {
|
||||
os.Exit(sdk.RunCommands(os.Args[1:]))
|
||||
}
|
||||
Reference in new issue
Block a user