~rjarry/go-opt

476a718a4b47e690ca42bd1c8e8552c010b2b4a3 — Robin Jarry 2 months ago ebeb825 v2.0.0
mod: add v2 suffix

The previous patch modifies the signature of CmdSpec.GetCompletions to
return an array of struct Completion objects instead of strings.

This is a breaking change. Change the package path to add a /v2 suffix
in preparation for the 2.x version series.

Signed-off-by: Robin Jarry <robin@jarry.cc>
6 files changed, 8 insertions(+), 8 deletions(-)

M README.md
M args_test.go
M complete_test.go
M go.mod
M opt.go
M spec_test.go
M README.md => README.md +3 -3
@@ 42,7 42,7 @@ package main
import (
	"log"

	"git.sr.ht/~rjarry/go-opt"
	"git.sr.ht/~rjarry/go-opt/v2"
)

func main() {


@@ 85,7 85,7 @@ import (
	"fmt"
	"log"

	"git.sr.ht/~rjarry/go-opt"
	"git.sr.ht/~rjarry/go-opt/v2"
)

type Foo struct {


@@ 132,7 132,7 @@ import (
	"os"
	"strings"

	"git.sr.ht/~rjarry/go-opt"
	"git.sr.ht/~rjarry/go-opt/v2"
)

type CompleteStruct struct {

M args_test.go => args_test.go +1 -1
@@ 6,7 6,7 @@ package opt_test
import (
	"testing"

	"git.sr.ht/~rjarry/go-opt"
	"git.sr.ht/~rjarry/go-opt/v2"
	"github.com/stretchr/testify/assert"
)


M complete_test.go => complete_test.go +1 -1
@@ 4,7 4,7 @@ import (
	"strings"
	"testing"

	"git.sr.ht/~rjarry/go-opt"
	"git.sr.ht/~rjarry/go-opt/v2"
	"github.com/stretchr/testify/assert"
)


M go.mod => go.mod +1 -1
@@ 1,4 1,4 @@
module git.sr.ht/~rjarry/go-opt
module git.sr.ht/~rjarry/go-opt/v2

go 1.18


M opt.go => opt.go +1 -1
@@ 10,7 10,7 @@ import (
	"fmt"
	"log"

	"git.sr.ht/~rjarry/go-opt"
	"git.sr.ht/~rjarry/go-opt/v2"
)

type Foo struct {

M spec_test.go => spec_test.go +1 -1
@@ 4,7 4,7 @@ import (
	"fmt"
	"testing"

	"git.sr.ht/~rjarry/go-opt"
	"git.sr.ht/~rjarry/go-opt/v2"
	"github.com/stretchr/testify/assert"
)