mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 15:12:26 +00:00
20 lines
339 B
Go
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)
|
|
}
|