Skip to content

Commit

Permalink
Fix persistance -> persistence (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exaphis authored Aug 21, 2023
1 parent 18dc7b5 commit 94f1580
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions packages/wrangler/src/__tests__/kv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ describe("wrangler", () => {
--metadata Arbitrary JSON that is associated with a key [string]
--path Read value from the file at a given path [string]
--local Interact with local storage [boolean]
--persist-to Directory for local persistance [string]"
--persist-to Directory for local persistence [string]"
`);
expect(std.err).toMatchInlineSnapshot(`
"X [ERROR] Not enough non-option arguments: got 0, need at least 1
Expand Down Expand Up @@ -612,7 +612,7 @@ describe("wrangler", () => {
--metadata Arbitrary JSON that is associated with a key [string]
--path Read value from the file at a given path [string]
--local Interact with local storage [boolean]
--persist-to Directory for local persistance [string]"
--persist-to Directory for local persistence [string]"
`);
expect(std.err).toMatchInlineSnapshot(`
"X [ERROR] Exactly one of the arguments binding and namespace-id is required
Expand Down Expand Up @@ -654,7 +654,7 @@ describe("wrangler", () => {
--metadata Arbitrary JSON that is associated with a key [string]
--path Read value from the file at a given path [string]
--local Interact with local storage [boolean]
--persist-to Directory for local persistance [string]"
--persist-to Directory for local persistence [string]"
`);
expect(std.err).toMatchInlineSnapshot(`
"X [ERROR] Arguments binding and namespace-id are mutually exclusive
Expand Down Expand Up @@ -696,7 +696,7 @@ describe("wrangler", () => {
--metadata Arbitrary JSON that is associated with a key [string]
--path Read value from the file at a given path [string]
--local Interact with local storage [boolean]
--persist-to Directory for local persistance [string]"
--persist-to Directory for local persistence [string]"
`);
expect(std.err).toMatchInlineSnapshot(`
"X [ERROR] Exactly one of the arguments value and path is required
Expand Down Expand Up @@ -738,7 +738,7 @@ describe("wrangler", () => {
--metadata Arbitrary JSON that is associated with a key [string]
--path Read value from the file at a given path [string]
--local Interact with local storage [boolean]
--persist-to Directory for local persistance [string]"
--persist-to Directory for local persistence [string]"
`);
expect(std.err).toMatchInlineSnapshot(`
"X [ERROR] Arguments value and path are mutually exclusive
Expand Down Expand Up @@ -1114,7 +1114,7 @@ describe("wrangler", () => {
--preview Interact with a preview namespace [boolean] [default: false]
--text Decode the returned value as a utf8 string [boolean] [default: false]
--local Interact with local storage [boolean]
--persist-to Directory for local persistance [string]"
--persist-to Directory for local persistence [string]"
`);
expect(std.err).toMatchInlineSnapshot(`
"X [ERROR] Not enough non-option arguments: got 0, need at least 1
Expand Down Expand Up @@ -1151,7 +1151,7 @@ describe("wrangler", () => {
--preview Interact with a preview namespace [boolean] [default: false]
--text Decode the returned value as a utf8 string [boolean] [default: false]
--local Interact with local storage [boolean]
--persist-to Directory for local persistance [string]"
--persist-to Directory for local persistence [string]"
`);
expect(std.err).toMatchInlineSnapshot(`
"X [ERROR] Exactly one of the arguments binding and namespace-id is required
Expand Down Expand Up @@ -1189,7 +1189,7 @@ describe("wrangler", () => {
--preview Interact with a preview namespace [boolean] [default: false]
--text Decode the returned value as a utf8 string [boolean] [default: false]
--local Interact with local storage [boolean]
--persist-to Directory for local persistance [string]"
--persist-to Directory for local persistence [string]"
`);
expect(std.err).toMatchInlineSnapshot(`
"X [ERROR] Arguments binding and namespace-id are mutually exclusive
Expand Down
12 changes: 6 additions & 6 deletions packages/wrangler/src/kv/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const kvKey = (kvYargs: CommonYargsArgv) => {
})
.option("persist-to", {
type: "string",
describe: "Directory for local persistance",
describe: "Directory for local persistence",
})
.check(demandOneOfOption("value", "path"));
},
Expand Down Expand Up @@ -332,7 +332,7 @@ export const kvKey = (kvYargs: CommonYargsArgv) => {
})
.option("persist-to", {
type: "string",
describe: "Directory for local persistance",
describe: "Directory for local persistence",
});
},
async ({ prefix, ...args }) => {
Expand Down Expand Up @@ -410,7 +410,7 @@ export const kvKey = (kvYargs: CommonYargsArgv) => {
})
.option("persist-to", {
type: "string",
describe: "Directory for local persistance",
describe: "Directory for local persistence",
});
},
async ({ key, ...args }) => {
Expand Down Expand Up @@ -486,7 +486,7 @@ export const kvKey = (kvYargs: CommonYargsArgv) => {
})
.option("persist-to", {
type: "string",
describe: "Directory for local persistance",
describe: "Directory for local persistence",
});
},
async ({ key, ...args }) => {
Expand Down Expand Up @@ -552,7 +552,7 @@ export const kvBulk = (kvYargs: CommonYargsArgv) => {
})
.option("persist-to", {
type: "string",
describe: "Directory for local persistance",
describe: "Directory for local persistence",
});
},
async ({ filename, ...args }) => {
Expand Down Expand Up @@ -681,7 +681,7 @@ export const kvBulk = (kvYargs: CommonYargsArgv) => {