1
0
mirror of https://github.com/go-task/task.git synced 2025-01-20 04:59:37 +02:00

Re-write import paths to v2

This commit is contained in:
Andrey Nering 2018-11-04 21:23:35 -02:00
parent cb95200be3
commit 3cbc89769d
19 changed files with 41 additions and 41 deletions

View File

@ -7,8 +7,8 @@ import (
"os/signal"
"syscall"
"github.com/go-task/task"
"github.com/go-task/task/internal/args"
"github.com/go-task/task/v2"
"github.com/go-task/task/v2/internal/args"
"github.com/spf13/pflag"
)

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/go-task/task
module github.com/go-task/task/v2
require (
github.com/Masterminds/semver v0.0.0-20180807142431-c84ddcca87bf

View File

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

View File

@ -4,7 +4,7 @@ import (
"errors"
"strings"
"github.com/go-task/task/internal/taskfile"
"github.com/go-task/task/v2/internal/taskfile"
)
var (

View File

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

View File

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

View File

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

View File

@ -7,11 +7,11 @@ import (
"strings"
"sync"
"github.com/go-task/task/internal/compiler"
"github.com/go-task/task/internal/execext"
"github.com/go-task/task/internal/logger"
"github.com/go-task/task/internal/taskfile"
"github.com/go-task/task/internal/templater"
"github.com/go-task/task/v2/internal/compiler"
"github.com/go-task/task/v2/internal/execext"
"github.com/go-task/task/v2/internal/logger"
"github.com/go-task/task/v2/internal/taskfile"
"github.com/go-task/task/v2/internal/templater"
)
var _ compiler.Compiler = &CompilerV1{}

View File

@ -7,11 +7,11 @@ import (
"strings"
"sync"
"github.com/go-task/task/internal/compiler"
"github.com/go-task/task/internal/execext"
"github.com/go-task/task/internal/logger"
"github.com/go-task/task/internal/taskfile"
"github.com/go-task/task/internal/templater"
"github.com/go-task/task/v2/internal/compiler"
"github.com/go-task/task/v2/internal/execext"
"github.com/go-task/task/v2/internal/logger"
"github.com/go-task/task/v2/internal/taskfile"
"github.com/go-task/task/v2/internal/templater"
)
var _ compiler.Compiler = &CompilerV2{}

View File

@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"github.com/go-task/task/internal/output"
"github.com/go-task/task/v2/internal/output"
"github.com/stretchr/testify/assert"
)

View File

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

View File

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

View File

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

View File

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

View File

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

18
task.go
View File

@ -7,15 +7,15 @@ import (
"os"
"sync/atomic"
"github.com/go-task/task/internal/compiler"
compilerv1 "github.com/go-task/task/internal/compiler/v1"
compilerv2 "github.com/go-task/task/internal/compiler/v2"
"github.com/go-task/task/internal/execext"
"github.com/go-task/task/internal/logger"
"github.com/go-task/task/internal/output"
"github.com/go-task/task/internal/taskfile"
"github.com/go-task/task/internal/taskfile/read"
"github.com/go-task/task/internal/taskfile/version"
"github.com/go-task/task/v2/internal/compiler"
compilerv1 "github.com/go-task/task/v2/internal/compiler/v1"
compilerv2 "github.com/go-task/task/v2/internal/compiler/v2"
"github.com/go-task/task/v2/internal/execext"
"github.com/go-task/task/v2/internal/logger"
"github.com/go-task/task/v2/internal/output"
"github.com/go-task/task/v2/internal/taskfile"
"github.com/go-task/task/v2/internal/taskfile/read"
"github.com/go-task/task/v2/internal/taskfile/version"
"github.com/Masterminds/semver"
"golang.org/x/sync/errgroup"

View File

@ -9,8 +9,8 @@ import (
"strings"
"testing"
"github.com/go-task/task"
"github.com/go-task/task/internal/taskfile"
"github.com/go-task/task/v2"
"github.com/go-task/task/v2/internal/taskfile"
"github.com/mitchellh/go-homedir"
"github.com/stretchr/testify/assert"

View File

@ -3,8 +3,8 @@ package task
import (
"path/filepath"
"github.com/go-task/task/internal/taskfile"
"github.com/go-task/task/internal/templater"
"github.com/go-task/task/v2/internal/taskfile"
"github.com/go-task/task/v2/internal/templater"
"mvdan.cc/sh/shell"
)

View File

@ -8,7 +8,7 @@ import (
"syscall"
"time"
"github.com/go-task/task/internal/taskfile"
"github.com/go-task/task/v2/internal/taskfile"
"github.com/mattn/go-zglob"
"github.com/radovskyb/watcher"
)