mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-12-04 15:21:05 +01:00
21 lines
376 B
Go
21 lines
376 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/ansible-semaphore/semaphore/util"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(migrateCmd)
|
|
}
|
|
|
|
var migrateCmd = &cobra.Command{
|
|
Use: "migrate",
|
|
Short: "Execute migrations",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
store := createStore("migrate")
|
|
defer store.Close("migrate")
|
|
util.Config.PrintDbInfo()
|
|
},
|
|
}
|