Draft: big refactor
This commit is contained in:
@@ -21,8 +21,8 @@ var RootCmd = &cobra.Command{
|
||||
SetDisableWarn(true)
|
||||
|
||||
queue := []*tea.Program{}
|
||||
queue = append(queue,
|
||||
tea.NewProgram(plays.NewLanding(plays.NewBase(client))))
|
||||
queue = append(queue, tea.NewProgram(
|
||||
plays.NewLanding(plays.NewBase(client))))
|
||||
|
||||
for len(queue) > 0 {
|
||||
program := queue[0]
|
||||
@@ -41,4 +41,5 @@ var RootCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
func init() {
|
||||
RootCmd.AddCommand(clientCmd)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user