mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
21 lines
336 B
Go
21 lines
336 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/MichaelMure/git-bug/termui"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func runTermUI(cmd *cobra.Command, args []string) error {
|
|
return termui.Run(repo)
|
|
}
|
|
|
|
var termUICmd = &cobra.Command{
|
|
Use: "termui",
|
|
Short: "Launch the terminal UI",
|
|
RunE: runTermUI,
|
|
}
|
|
|
|
func init() {
|
|
RootCmd.AddCommand(termUICmd)
|
|
}
|