gime/cmd/ui.go

27 lines
468 B
Go
Raw Normal View History

2022-01-19 18:56:31 +00:00
/*
2022-01-19 21:30:30 +00:00
Copyright © 2022 Brian Buller <brian@bullercodeworks.com>
2022-01-19 18:56:31 +00:00
*/
package cmd
import (
2023-01-06 15:34:55 +00:00
"git.bullercodeworks.com/brian/gime/cli"
"git.bullercodeworks.com/brian/gime/ui"
2022-01-19 18:56:31 +00:00
"github.com/spf13/cobra"
)
// uiCmd represents the ui command
var uiCmd = &cobra.Command{
Use: "ui",
2022-01-19 21:30:30 +00:00
Short: "Start gime in TUI mode",
RunE: opUi,
2022-01-19 18:56:31 +00:00
}
func init() {
rootCmd.AddCommand(uiCmd)
2022-01-19 21:30:30 +00:00
}
2022-01-19 18:56:31 +00:00
2022-01-19 21:30:30 +00:00
func opUi(cmd *cobra.Command, args []string) error {
2023-01-06 15:34:55 +00:00
p := &cli.Program{}
return ui.RunTUI(p)
2022-01-19 18:56:31 +00:00
}