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

Commit 37214d9

Browse files
committed
rename cloud code -> Cloud Code
rename 'cloud code' to 'Cloud Code' since it's a proper noun
1 parent 1a6cd11 commit 37214d9

10 files changed

+18
-18
lines changed

default_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TestSetDefaultInvalid(t *testing.T) {
7171
regexp.MustCompile(`Invalid application name "invalid". Please select from the valid applications printed above.`),
7272
)
7373
ensure.DeepEqual(t, h.Out.String(),
74-
`The following apps are associated with cloud code in the current directory:
74+
`The following apps are associated with Cloud Code in the current directory:
7575
* first
7676
second
7777
`)
@@ -129,7 +129,7 @@ func TestLegacySetDefaultInvalid(t *testing.T) {
129129
regexp.MustCompile(`Invalid application name "invalid". Please select from the valid applications printed above.`),
130130
)
131131
ensure.DeepEqual(t, h.Out.String(),
132-
`The following apps are associated with cloud code in the current directory:
132+
`The following apps are associated with Cloud Code in the current directory:
133133
* first
134134
second
135135
`)

functions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (h *functionHooksCmd) functionHooksDelete(e *parsecli.Env, ctx *parsecli.Co
187187
}
188188
fmt.Fprintf(e.Out, "Successfully deleted webhook function %q\n", params.FunctionName)
189189
if res.FunctionName != "" {
190-
fmt.Fprintf(e.Out, "Function %q defined in cloud code will be used henceforth\n", res.FunctionName)
190+
fmt.Fprintf(e.Out, "Function %q defined in Cloud Code will be used henceforth\n", res.FunctionName)
191191
}
192192
}
193193

@@ -205,8 +205,8 @@ func NewFunctionHooksCmd(e *parsecli.Env) *cobra.Command {
205205

206206
c := &cobra.Command{
207207
Use: "functions",
208-
Short: "List cloud code functions and function webhooks",
209-
Long: "List cloud code functions and function webhooks",
208+
Short: "List Cloud Code functions and function webhooks",
209+
Long: "List Cloud Code functions and function webhooks",
210210
Run: parsecli.RunWithClient(e, h.functionHooks),
211211
}
212212

functions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func TestFunctionHookDelete(t *testing.T) {
226226
ensure.DeepEqual(t,
227227
h.Out.String(),
228228
`Please enter the function name: Are you sure you want to delete webhook function: "foo" (y/n): Successfully deleted webhook function "foo"
229-
Function "foo" defined in cloud code will be used henceforth
229+
Function "foo" defined in Cloud Code will be used henceforth
230230
`)
231231

232232
h.Out.Reset()

list_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func TestPrintListOneAppNoDefaultKey(t *testing.T) {
2121
h := parsecli.NewHarness(t)
2222
defer h.Stop()
2323
conf.PrettyPrintApps(h.Env)
24-
ensure.DeepEqual(t, h.Out.String(), "The following apps are associated with cloud code in the current directory:\n first\n")
24+
ensure.DeepEqual(t, h.Out.String(), "The following apps are associated with Cloud Code in the current directory:\n first\n")
2525
}
2626

2727
func TestPrintListOneAppWithDefaultKey(t *testing.T) {
@@ -32,7 +32,7 @@ func TestPrintListOneAppWithDefaultKey(t *testing.T) {
3232
h := parsecli.NewHarness(t)
3333
defer h.Stop()
3434
conf.PrettyPrintApps(h.Env)
35-
ensure.DeepEqual(t, h.Out.String(), "The following apps are associated with cloud code in the current directory:\n* first\n")
35+
ensure.DeepEqual(t, h.Out.String(), "The following apps are associated with Cloud Code in the current directory:\n* first\n")
3636
}
3737

3838
func TestPrintListTwoAppsWithDefaultKey(t *testing.T) {
@@ -43,7 +43,7 @@ func TestPrintListTwoAppsWithDefaultKey(t *testing.T) {
4343
h := parsecli.NewHarness(t)
4444
defer h.Stop()
4545
conf.PrettyPrintApps(h.Env)
46-
ensure.DeepEqual(t, h.Out.String(), "The following apps are associated with cloud code in the current directory:\n* first\n second\n")
46+
ensure.DeepEqual(t, h.Out.String(), "The following apps are associated with Cloud Code in the current directory:\n* first\n second\n")
4747
}
4848

4949
func TestPrintListTwoAppsWithLinks(t *testing.T) {
@@ -53,7 +53,7 @@ func TestPrintListTwoAppsWithLinks(t *testing.T) {
5353
h := parsecli.NewHarness(t)
5454
defer h.Stop()
5555
conf.PrettyPrintApps(h.Env)
56-
ensure.DeepEqual(t, h.Out.String(), "The following apps are associated with cloud code in the current directory:\n* first\n second -> first\n")
56+
ensure.DeepEqual(t, h.Out.String(), "The following apps are associated with Cloud Code in the current directory:\n* first\n second -> first\n")
5757
}
5858
func TestPrintListNoConfig(t *testing.T) {
5959
t.Parallel()

new.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type newCmd struct {
2020
configOnly bool // create a Cloud Code project with only configuration, no code
2121
createNewApp bool // create a new app
2222
parseAppName string // name of parse app
23-
codeLocation string // location of cloud code project
23+
codeLocation string // location of Cloud Code project
2424
}
2525

2626
func (n *newCmd) curlCommand(app *parsecli.App) string {

parsecli/parse_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (c *ParseConfig) PrettyPrintApps(e *Env) {
121121

122122
fmt.Fprintln(
123123
e.Out,
124-
"The following apps are associated with cloud code in the current directory:",
124+
"The following apps are associated with Cloud Code in the current directory:",
125125
)
126126

127127
for _, appName := range appNames {

parsecmd/new.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func CloneSampleCloudCode(
1313
appConfig parsecli.AppConfig) (bool, error) {
1414
dumpTemplate := false
1515
if !isNew && !configOnly {
16-
// if parse app was already created try to fetch cloud code and populate dir
16+
// if parse app was already created try to fetch Cloud Code and populate dir
1717
masterKey, err := appConfig.GetMasterKey(e)
1818
if err != nil {
1919
return false, err

parsecmd/releases.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Note that you can list files for all releases shown in "parse releases"`,
6262
return stackerr.Wrap(err)
6363
}
6464
if len(versionFileNames.Cloud) != 0 {
65-
fmt.Fprintf(e.Out, "Deployed cloud code files:\n")
65+
fmt.Fprintf(e.Out, "Deployed Cloud Code files:\n")
6666
r.printFileNames(versionFileNames.Cloud, e)
6767
}
6868
if len(versionFileNames.Cloud) != 0 && len(versionFileNames.Public) != 0 {

parsecmd/releases_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func TestReleasesCmdPrintVersion(t *testing.T) {
8383
h.Out.Reset()
8484
err = r.printFiles("v1", releases, h.Env)
8585
ensure.Nil(t, err)
86-
ensure.DeepEqual(t, h.Out.String(), `Deployed cloud code files:
86+
ensure.DeepEqual(t, h.Out.String(), `Deployed Cloud Code files:
8787
app.js
8888
main.js
8989
views/index.js
@@ -92,7 +92,7 @@ views/index.js
9292
h.Out.Reset()
9393
err = r.printFiles("v2", releases, h.Env)
9494
ensure.Nil(t, err)
95-
ensure.DeepEqual(t, h.Out.String(), `Deployed cloud code files:
95+
ensure.DeepEqual(t, h.Out.String(), `Deployed Cloud Code files:
9696
app.js
9797
main.js
9898
views/docs.js

triggers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ func NewTriggerHooksCmd(e *parsecli.Env) *cobra.Command {
214214

215215
c := &cobra.Command{
216216
Use: "triggers",
217-
Short: "List cloud code triggers and trigger webhooks",
218-
Long: "List cloud code triggers and trigger webhooks",
217+
Short: "List Cloud Code triggers and trigger webhooks",
218+
Long: "List Cloud Code triggers and trigger webhooks",
219219
Run: parsecli.RunWithClient(e, h.triggerHooks),
220220
}
221221

0 commit comments

Comments
 (0)