Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiumara committed Apr 26, 2023
1 parent fa37277 commit 7376f5e
Show file tree
Hide file tree
Showing 46 changed files with 67 additions and 80 deletions.
4 changes: 2 additions & 2 deletions confirm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"testing"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os/exec"
"runtime"

"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/terminal"
shellquote "github.com/kballard/go-shellquote"
)

Expand Down
4 changes: 2 additions & 2 deletions editor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"
"time"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 1 addition & 2 deletions examples/countrylist.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

// the questions to ask
Expand Down
3 changes: 1 addition & 2 deletions examples/cursor.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

// the questions to ask
Expand Down
3 changes: 1 addition & 2 deletions examples/inputfilesuggestion.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"
"path/filepath"

"github.com/AlecAivazis/survey/v2"
)

func suggestFiles(toComplete string) []string {
Expand Down
3 changes: 1 addition & 2 deletions examples/longlist.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

// the questions to ask
Expand Down
3 changes: 2 additions & 1 deletion examples/longmulti.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"
"strings"

survey "github.com/AlecAivazis/survey/v2"
survey "github.com/go-survey/survey/v2"
)

// the questions to ask
Expand Down
3 changes: 2 additions & 1 deletion examples/longmultikeepfilter.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"
"strings"

survey "github.com/AlecAivazis/survey/v2"
survey "github.com/go-survey/survey/v2"
)

// the questions to ask
Expand Down
3 changes: 1 addition & 2 deletions examples/map.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

// the questions to ask
Expand Down
3 changes: 1 addition & 2 deletions examples/password.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

// the questions to ask
Expand Down
3 changes: 1 addition & 2 deletions examples/select_description.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

type Meal struct {
Expand Down
3 changes: 1 addition & 2 deletions examples/simple.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

// the questions to ask
Expand Down
3 changes: 1 addition & 2 deletions examples/validation.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

// the questions to ask
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/AlecAivazis/survey/v2
module github.com/go-survey/survey/v2

require (
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2
Expand Down
4 changes: 2 additions & 2 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package survey
import (
"errors"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"testing"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion multiline.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package survey
import (
"strings"

"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/terminal"
)

type Multiline struct {
Expand Down
4 changes: 2 additions & 2 deletions multiline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"testing"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions multiselect.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions multiselect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions password.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion password_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/AlecAivazis/survey/v2/core"
"github.com/go-survey/survey/v2/core"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package survey
import (
"bytes"
"fmt"
"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
"golang.org/x/term"
)

Expand Down
2 changes: 1 addition & 1 deletion renderer_posix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"testing"

"github.com/AlecAivazis/survey/v2/terminal"
pseudotty "github.com/creack/pty"
"github.com/go-survey/survey/v2/terminal"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion renderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/AlecAivazis/survey/v2/core"
"github.com/go-survey/survey/v2/core"
)

func TestValidationError(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions select.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions survey.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"unicode/utf8"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
)

// DefaultAskOptions is the default options on ask, using the OS stdio.
Expand Down
2 changes: 1 addition & 1 deletion survey_posix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package survey
import (
"testing"

"github.com/AlecAivazis/survey/v2/terminal"
expect "github.com/Netflix/go-expect"
pseudotty "github.com/creack/pty"
"github.com/go-survey/survey/v2/terminal"
"github.com/hinshun/vt10x"
)

Expand Down
4 changes: 2 additions & 2 deletions survey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/AlecAivazis/survey/v2/core"
"github.com/AlecAivazis/survey/v2/terminal"
expect "github.com/Netflix/go-expect"
"github.com/go-survey/survey/v2/core"
"github.com/go-survey/survey/v2/terminal"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion survey_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package survey
import (
"testing"

"github.com/AlecAivazis/survey/v2/terminal"
"github.com/go-survey/survey/v2/terminal"
)

func RunTest(t *testing.T, procedure func(expectConsole), test func(terminal.Stdio) error) {
Expand Down
3 changes: 1 addition & 2 deletions tests/ask.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"fmt"

"github.com/AlecAivazis/survey/v2"
)

// the questions to ask
Expand Down
4 changes: 2 additions & 2 deletions tests/confirm.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//go:build ignore
// +build ignore

package main

import (
"github.com/AlecAivazis/survey/v2"
TestUtil "github.com/AlecAivazis/survey/v2/tests/util"
TestUtil "github.com/go-survey/survey/v2/tests/util"
)

var answer = false
Expand Down
Loading

0 comments on commit 7376f5e

Please sign in to comment.