Skip to content

Commit 3af09bd

Browse files
committed
update-doc
1 parent 1e36939 commit 3af09bd

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

cli/src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ const args = yargs(Deno.args)
1313
yargs
1414
.option("get", {
1515
alias: "g",
16-
description: "Get a value for a given key: `<secret> <input json>`",
16+
description:
17+
"Get a value for a given key: `<token> <cacheId> <jsonString>`",
1718
string: true,
1819
})
1920
.option("delete", {
2021
alias: "d",
21-
description: "Deletes a value for a given key: `<secret> <input json>`",
22+
description:
23+
"Deletes a value for a given key: `<token> <cacheId> <jsonString>`",
2224
string: true,
2325
}))
2426
.command(

cli/src/keyManipulation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { callServer } from "./rpc.ts";
22
import { inputToCacheKey } from "../../client/src/index.ts";
33

44
const actOnKey = (method: string) => (args: string) => () => {
5-
const [token, cacheId, key] = args.split(" ");
5+
const [token, cacheId, jsonString] = args.split(" ");
66
return callServer("", "POST", {
77
method,
88
params: {
99
cacheId,
10-
key: inputToCacheKey(token, undefined)(...JSON.parse(key)),
10+
key: inputToCacheKey(token, undefined)(...JSON.parse(jsonString)),
1111
},
1212
})(token);
1313
};

deno.lock

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)