mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
28 lines
512 B
Go
28 lines
512 B
Go
package main
|
|
|
|
import (
|
|
"gopkg.in/AlecAivazis/survey.v1"
|
|
"gopkg.in/AlecAivazis/survey.v1/tests/util"
|
|
)
|
|
|
|
var val = ""
|
|
|
|
var table = []TestUtil.TestTableEntry{
|
|
{
|
|
"no default", &survey.Input{Message: "Hello world"}, &val,
|
|
},
|
|
{
|
|
"default", &survey.Input{Message: "Hello world", Default: "default"}, &val,
|
|
},
|
|
{
|
|
"no help, send '?'", &survey.Input{Message: "Hello world"}, &val,
|
|
},
|
|
{
|
|
"input text in random location", &survey.Input{Message: "Hello"}, &val,
|
|
},
|
|
}
|
|
|
|
func main() {
|
|
TestUtil.RunTable(table)
|
|
}
|