ficsit-cli-flake/cmd/cli.go
2021-12-02 06:00:33 +02:00

24 lines
428 B
Go

package cmd
import (
"github.com/satisfactorymodding/ficsit-cli/cli"
"github.com/satisfactorymodding/ficsit-cli/tea"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(cliCmd)
}
var cliCmd = &cobra.Command{
Use: "cli",
Short: "Start interactive CLI",
RunE: func(cmd *cobra.Command, args []string) error {
global, err := cli.InitCLI()
if err != nil {
panic(err)
}
return tea.RunTea(global)
},
}