1
0
mirror of https://github.com/go-task/task.git synced 2025-02-13 13:59:32 +02:00

Move args and taskfile packages to root directory

This commit is contained in:
Damian Szulc 2020-08-19 10:59:58 +02:00
parent 7652d7889b
commit 47dd9b5a03
29 changed files with 25 additions and 25 deletions

View File

@ -3,7 +3,7 @@ package args
import ( import (
"strings" "strings"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
) )
// ParseV3 parses command line argument: tasks and global variables // ParseV3 parses command line argument: tasks and global variables

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/go-task/task/v3/internal/args" "github.com/go-task/task/v3/args"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -10,9 +10,9 @@ import (
"syscall" "syscall"
"github.com/go-task/task/v3" "github.com/go-task/task/v3"
"github.com/go-task/task/v3/internal/args" "github.com/go-task/task/v3/args"
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"github.com/spf13/pflag" "github.com/spf13/pflag"
) )

View File

@ -6,7 +6,7 @@ import (
"text/tabwriter" "text/tabwriter"
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
) )
// PrintTasksHelp prints help os tasks that have a description // PrintTasksHelp prints help os tasks that have a description

View File

@ -1,7 +1,7 @@
package compiler package compiler
import ( import (
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
) )
// Compiler handles compilation of a task before its execution. // Compiler handles compilation of a task before its execution.

View File

@ -4,7 +4,7 @@ import (
"os" "os"
"strings" "strings"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
) )
// GetEnviron the all return all environment variables encapsulated on a // GetEnviron the all return all environment variables encapsulated on a

View File

@ -10,8 +10,8 @@ import (
"github.com/go-task/task/v3/internal/compiler" "github.com/go-task/task/v3/internal/compiler"
"github.com/go-task/task/v3/internal/execext" "github.com/go-task/task/v3/internal/execext"
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/taskfile"
"github.com/go-task/task/v3/internal/templater" "github.com/go-task/task/v3/internal/templater"
"github.com/go-task/task/v3/taskfile"
) )
var _ compiler.Compiler = &CompilerV2{} var _ compiler.Compiler = &CompilerV2{}

View File

@ -10,8 +10,8 @@ import (
"github.com/go-task/task/v3/internal/compiler" "github.com/go-task/task/v3/internal/compiler"
"github.com/go-task/task/v3/internal/execext" "github.com/go-task/task/v3/internal/execext"
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/taskfile"
"github.com/go-task/task/v3/internal/templater" "github.com/go-task/task/v3/internal/templater"
"github.com/go-task/task/v3/taskfile"
) )
var _ compiler.Compiler = &CompilerV3{} var _ compiler.Compiler = &CompilerV3{}

View File

@ -4,7 +4,7 @@ import (
"strings" "strings"
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
) )
func PrintTasks(l *logger.Logger, t *taskfile.Taskfile, c []taskfile.Call) { func PrintTasks(l *logger.Logger, t *taskfile.Taskfile, c []taskfile.Call) {

View File

@ -7,7 +7,7 @@ import (
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/summary" "github.com/go-task/task/v3/internal/summary"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"text/template" "text/template"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
) )
// Templater is a help struct that allow us to call "replaceX" funcs multiple // Templater is a help struct that allow us to call "replaceX" funcs multiple

View File

@ -6,7 +6,7 @@ import (
"github.com/go-task/task/v3/internal/execext" "github.com/go-task/task/v3/internal/execext"
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
) )
var ( var (

View File

@ -7,7 +7,7 @@ import (
"github.com/go-task/task/v3/internal/execext" "github.com/go-task/task/v3/internal/execext"
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/status" "github.com/go-task/task/v3/internal/status"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
) )
// Status returns an error if any the of given tasks is not up-to-date // Status returns an error if any the of given tasks is not up-to-date

View File

@ -16,8 +16,8 @@ import (
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/output" "github.com/go-task/task/v3/internal/output"
"github.com/go-task/task/v3/internal/summary" "github.com/go-task/task/v3/internal/summary"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"github.com/go-task/task/v3/internal/taskfile/read" "github.com/go-task/task/v3/taskfile/read"
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
) )

View File

@ -12,7 +12,7 @@ import (
"testing" "testing"
"github.com/go-task/task/v3" "github.com/go-task/task/v3"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -3,7 +3,7 @@ package taskfile_test
import ( import (
"testing" "testing"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"

View File

@ -7,8 +7,8 @@ import (
"path/filepath" "path/filepath"
"runtime" "runtime"
"github.com/go-task/task/v3/internal/taskfile"
"github.com/go-task/task/v3/internal/templater" "github.com/go-task/task/v3/internal/templater"
"github.com/go-task/task/v3/taskfile"
"github.com/joho/godotenv" "github.com/joho/godotenv"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"

View File

@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"runtime" "runtime"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
) )

View File

@ -3,7 +3,7 @@ package taskfile_test
import ( import (
"testing" "testing"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"

View File

@ -6,8 +6,8 @@ import (
"github.com/go-task/task/v3/internal/execext" "github.com/go-task/task/v3/internal/execext"
"github.com/go-task/task/v3/internal/status" "github.com/go-task/task/v3/internal/status"
"github.com/go-task/task/v3/internal/taskfile"
"github.com/go-task/task/v3/internal/templater" "github.com/go-task/task/v3/internal/templater"
"github.com/go-task/task/v3/taskfile"
) )
// CompiledTask returns a copy of a task, but replacing variables in almost all // CompiledTask returns a copy of a task, but replacing variables in almost all

View File

@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/go-task/task/v3/internal/logger" "github.com/go-task/task/v3/internal/logger"
"github.com/go-task/task/v3/internal/taskfile" "github.com/go-task/task/v3/taskfile"
"github.com/mattn/go-zglob" "github.com/mattn/go-zglob"
"github.com/radovskyb/watcher" "github.com/radovskyb/watcher"
) )