Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 0016473

Browse files
committed
Revert "Command line quotes for Windows"
This reverts commit bf91476.
1 parent bf91476 commit 0016473

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

new.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"os"
66
"path/filepath"
77
"strings"
8-
"strconv"
98

109
"github.com/ParsePlatform/parse-cli/herokucmd"
1110
"github.com/ParsePlatform/parse-cli/parsecli"
@@ -26,17 +25,17 @@ type newCmd struct {
2625
}
2726

2827
func (n *newCmd) curlCommand(e *parsecli.Env, app *parsecli.App) string {
29-
args := "\"{}\""
28+
args := "{}"
3029
if e.Type == parsecli.HerokuFormat {
31-
args = strconv.Quote(`{"a": "Adventurous ", "b": "Parser"}`)
30+
args = `{"a": "Adventurous ", "b": "Parser"}`
3231
}
33-
32+
3433
return fmt.Sprintf(
3534
`curl -X POST \
3635
-H "X-Parse-Application-Id: %s" \
3736
-H "X-Parse-REST-API-Key: %s" \
3837
-H "Content-Type: application/json" \
39-
-d %s \
38+
-d '%s' \
4039
https://api.parse.com/1/functions/hello
4140
`,
4241
app.ApplicationID,

0 commit comments

Comments
 (0)