Files
sablier/cmd/start.go
Alexis Couvreur edbf7d9d15 fix(kubernetes): consider workload not ready when scaled to 0 (#543)
* 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
2025-03-02 23:30:59 -05:00

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)
}
},
}
}