diff --git a/internal/cmd/common.go b/internal/cmd/common.go index 1eb2382b..2425db80 100644 --- a/internal/cmd/common.go +++ b/internal/cmd/common.go @@ -393,7 +393,6 @@ type loadTasksModel struct { tasks project.CodeBlocks - // channel chan interface{} nextTaskMsg tea.Cmd } diff --git a/internal/cmd/print.go b/internal/cmd/print.go index 6e0f0c3c..ccfd1e6f 100644 --- a/internal/cmd/print.go +++ b/internal/cmd/print.go @@ -5,7 +5,6 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/stateful/runme/internal/project" ) func printCmd() *cobra.Command { @@ -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 } diff --git a/internal/cmd/run.go b/internal/cmd/run.go index eb4049dc..bcfb966c 100644 --- a/internal/cmd/run.go +++ b/internal/cmd/run.go @@ -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 } diff --git a/internal/cmd/tui.go b/internal/cmd/tui.go index 023ab7cc..ed386f33 100644 --- a/internal/cmd/tui.go +++ b/internal/cmd/tui.go @@ -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 }