fix: Parse prompt input JSON using object or array chars (#538)

Fixes #492. There is no more single-quote parsing, and instead we use a JSON decoder for multiline values. This is a much better UX!
This commit is contained in:
Kyle Carberry
2022-03-23 19:12:40 -06:00
committed by GitHub
parent 305b67c668
commit 99ece25bb3
4 changed files with 60 additions and 16 deletions

View File

@ -9,10 +9,11 @@ import (
"sync"
"time"
"github.com/coder/coder/cryptorand"
"github.com/ory/dockertest/v3"
"github.com/ory/dockertest/v3/docker"
"golang.org/x/xerrors"
"github.com/coder/coder/cryptorand"
)
// Required to prevent port collision during container creation.