mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
* test(kubernetes): use testcontainers for test
* fix(kubernetes): get state properly reports the workload as down when scaled to 0
* refactor(kubernetes): split provider in multiple files
* refactor(provider): use Instance prefix for actions
* test(testcontainers): use provider.PullImage
* squash
* Revert "test(testcontainers): use provider.PullImage"
This reverts commit 6f958c48a5.
* test: add random generator thread safety
23 lines
413 B
Go
23 lines
413 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/sablierapp/sablier/app"
|
|
"github.com/spf13/cobra"
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
var newStartCommand = func() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "start",
|
|
Short: "InstanceStart the Sablier server",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
viper.Unmarshal(&conf)
|
|
|
|
err := app.Start(cmd.Context(), conf)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
},
|
|
}
|
|
}
|