Files
GoSally/cmd/run.go
Alexey aebc3d2e9b - move run hook to external package
- replace own contains function to slices.Contains
2025-07-30 12:33:51 +03:00

20 lines
339 B
Go

package cmd
import (
"github.com/akyaiy/GoSally-mvp/hooks"
"github.com/spf13/cobra"
)
var runCmd = &cobra.Command{
Use: "run",
Aliases: []string{"r"},
Short: "Run node normally",
Long: `
"run" starts the node with settings depending on the configuration file`,
Run: hooks.Run,
}
func init() {
rootCmd.AddCommand(runCmd)
}