Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

[#89] replaced local imports with references to gopkg.in #91

Merged
merged 4 commits into from
Aug 31, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[#89] replaced local imports with references to gopkg.in
  • Loading branch information
AlecAivazis committed Aug 25, 2017
commit 6120186be5cdac04c1881b9f53e8cdf234483be2
2 changes: 1 addition & 1 deletion .tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ tests:
command: go test {{.files}}

variables:
files: '$(go list -v ./... | grep -iEv "github.com/AlecAivazis/survey/(tests|examples)")'
files: '$(go list -v ./... | grep -iEv "gopkg.in/AlecAivazis/survey.v1/(tests|examples)")'
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Survey
[![Build Status](https://travis-ci.org/AlecAivazis/survey.svg?branch=feature%2Fpretty)](https://travis-ci.org/AlecAivazis/survey)
[![GoDoc](http://img.shields.io/badge/godoc-reference-5272B4.svg)](https://godoc.org/github.com/AlecAivazis/survey)
[![GoDoc](http://img.shields.io/badge/godoc-reference-5272B4.svg)](https://github.com/AlecAivazis/survey)

A library for building interactive prompts. Heavily inspired by the great [inquirer.js](https://github.com/SBoudrias/Inquirer.js/).

Expand Down Expand Up @@ -77,7 +77,7 @@ Examples can be found in the `examples/` directory. Run them
to see basic behavior:

```bash
go get github.com/AlecAivazis/survey
go get gopkg.in/AlecAivazis/survey.v1

# ... navigate to the repo in your GOPATH

Expand Down Expand Up @@ -280,9 +280,8 @@ in `survey/core`:

## Versioning

This project tries to maintain semantic GitHub releases as closely as possible. As such, services
like [gopkg.in](http://labix.org/gopkg.in) work very well to ensure non-breaking changes whenever
you build your application. For example, importing v1 of survey could look something like
This project tries to maintain semantic GitHub releases as closely as possible. And relies on [gopkg.in](http://labix.org/gopkg.in)
to maintain those releasees. Importing v1 of survey could look something like

```golang
package main
Expand Down
4 changes: 2 additions & 2 deletions confirm.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"regexp"

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

// Confirm is a regular text input that accept yes/no answers. Response type is a bool.
Expand Down
4 changes: 2 additions & 2 deletions confirm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"testing"

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"github.com/stretchr/testify/assert"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion core/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package core
import (
"strings"

"github.com/AlecAivazis/survey/terminal"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

type Renderer struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/longlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/AlecAivazis/survey"
"gopkg.in/AlecAivazis/survey.v1"
)

// the questions to ask
Expand Down
2 changes: 1 addition & 1 deletion examples/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/AlecAivazis/survey"
"gopkg.in/AlecAivazis/survey.v1"
)

// the questions to ask
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/AlecAivazis/survey"
"gopkg.in/AlecAivazis/survey.v1"
)

// the questions to ask
Expand Down
2 changes: 1 addition & 1 deletion examples/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/AlecAivazis/survey"
"gopkg.in/AlecAivazis/survey.v1"
)

// the questions to ask
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 (
"os"

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

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

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"github.com/stretchr/testify/assert"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

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

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

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

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"github.com/stretchr/testify/assert"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/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 @@ -3,8 +3,8 @@ package survey
import (
"os"

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

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

"github.com/AlecAivazis/survey/core"
"github.com/stretchr/testify/assert"
"gopkg.in/AlecAivazis/survey.v1/core"
)

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

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

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

"github.com/AlecAivazis/survey/core"
"github.com/AlecAivazis/survey/terminal"
"github.com/stretchr/testify/assert"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)

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

"github.com/AlecAivazis/survey/core"
"gopkg.in/AlecAivazis/survey.v1/core"
)

// PageSize is the default maximum number of items to show in select/multiselect prompts
Expand Down
2 changes: 1 addition & 1 deletion survey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/AlecAivazis/survey/core"
"github.com/stretchr/testify/assert"
"gopkg.in/AlecAivazis/survey.v1/core"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ask.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/AlecAivazis/survey"
"gopkg.in/AlecAivazis/survey.v1"
)

// 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,8 +1,8 @@
package main

import (
"github.com/AlecAivazis/survey"
"github.com/AlecAivazis/survey/tests/util"
"gopkg.in/AlecAivazis/survey.v1"
"gopkg.in/AlecAivazis/survey.v1/tests/util"
)

var answer = false
Expand Down
2 changes: 1 addition & 1 deletion tests/doubleSelect.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/AlecAivazis/survey"
"gopkg.in/AlecAivazis/survey.v1"
)

var simpleQs = []*survey.Question{
Expand Down
4 changes: 2 additions & 2 deletions tests/help.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/AlecAivazis/survey"
"github.com/AlecAivazis/survey/tests/util"
"gopkg.in/AlecAivazis/survey.v1"
"gopkg.in/AlecAivazis/survey.v1/tests/util"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions tests/input.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/AlecAivazis/survey"
"github.com/AlecAivazis/survey/tests/util"
"gopkg.in/AlecAivazis/survey.v1"
"gopkg.in/AlecAivazis/survey.v1/tests/util"
)

var val = ""
Expand Down
2 changes: 1 addition & 1 deletion tests/longSelect.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/AlecAivazis/survey"
import "gopkg.in/AlecAivazis/survey.v1"

func main() {
color := ""
Expand Down
4 changes: 2 additions & 2 deletions tests/multiselect.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/AlecAivazis/survey"
"github.com/AlecAivazis/survey/tests/util"
"gopkg.in/AlecAivazis/survey.v1"
"gopkg.in/AlecAivazis/survey.v1/tests/util"
)

var answer = []string{}
Expand Down
4 changes: 2 additions & 2 deletions tests/password.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/AlecAivazis/survey"
"github.com/AlecAivazis/survey/tests/util"
"gopkg.in/AlecAivazis/survey.v1"
"gopkg.in/AlecAivazis/survey.v1/tests/util"
)

var value = ""
Expand Down
4 changes: 2 additions & 2 deletions tests/select.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/AlecAivazis/survey"
"github.com/AlecAivazis/survey/tests/util"
"gopkg.in/AlecAivazis/survey.v1"
"gopkg.in/AlecAivazis/survey.v1/tests/util"
)

var answer = ""
Expand Down
2 changes: 1 addition & 1 deletion tests/selectThenInput.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/AlecAivazis/survey"
"gopkg.in/AlecAivazis/survey.v1"
)

// the questions to ask
Expand Down
2 changes: 1 addition & 1 deletion tests/util/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"reflect"

"github.com/AlecAivazis/survey"
"gopkg.in/AlecAivazis/survey.v1"
)

type TestTableEntry struct {
Expand Down