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

@ -3,10 +3,11 @@ package cli_test
import (
"testing"
"github.com/stretchr/testify/require"
"github.com/coder/coder/cli/clitest"
"github.com/coder/coder/coderd/coderdtest"
"github.com/coder/coder/pty/ptytest"
"github.com/stretchr/testify/require"
)
func TestWorkspaceCreate(t *testing.T) {