Compare commits
2 Commits
7291a43e68
...
3638685d24
Author | SHA1 | Date |
---|---|---|
vilmibm | 3638685d24 | |
vilmibm | cb0d574a76 |
|
@ -12,6 +12,9 @@ import (
|
||||||
"github.com/AlecAivazis/survey/v2"
|
"github.com/AlecAivazis/survey/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// TODO ok so right now this just does one hyper specific thing, but I want to
|
||||||
|
// add more similar scripts here. this might warrant the introduction of cobra.
|
||||||
|
|
||||||
func confirmContinue(msg string) {
|
func confirmContinue(msg string) {
|
||||||
var serr error
|
var serr error
|
||||||
var conf bool
|
var conf bool
|
||||||
|
@ -52,6 +55,10 @@ func main() {
|
||||||
errs := []error{}
|
errs := []error{}
|
||||||
signups := make([]jsonSignup, len(lines))
|
signups := make([]jsonSignup, len(lines))
|
||||||
for i, l := range lines {
|
for i, l := range lines {
|
||||||
|
l = strings.TrimSpace(l)
|
||||||
|
if l == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
s := jsonSignup{}
|
s := jsonSignup{}
|
||||||
err := json.Unmarshal([]byte(l), &s)
|
err := json.Unmarshal([]byte(l), &s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue