Skip to content

Commit

Permalink
use new task loader everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsdev committed Jun 23, 2023
1 parent 529c3a1 commit afccc5b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion internal/cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ type loadTasksModel struct {

tasks project.CodeBlocks

// channel chan interface{}
nextTaskMsg tea.Cmd
}

Expand Down
3 changes: 1 addition & 2 deletions internal/cmd/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/stateful/runme/internal/project"
)

func printCmd() *cobra.Command {
Expand All @@ -21,7 +20,7 @@ func printCmd() *cobra.Command {
return err
}

blocks, err := project.LoadProjectTasks(proj)
blocks, err := loadTasks(proj, cmd.OutOrStdout(), cmd.InOrStdin())
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func runCmd() *cobra.Command {
runBlocks := make([]project.FileCodeBlock, 0)

{
blocks, err := project.LoadProjectTasks(proj)
blocks, err := loadTasks(proj, cmd.OutOrStdout(), cmd.InOrStdin())
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func tuiCmd() *cobra.Command {
return err
}

blocks, err := project.LoadProjectTasks(proj)
blocks, err := loadTasks(proj, cmd.OutOrStdout(), cmd.InOrStdin())
if err != nil {
return err
}
Expand Down

0 comments on commit afccc5b

Please sign in to comment.