Skip to content

Commit

Permalink
space-not-colon
Browse files Browse the repository at this point in the history
  • Loading branch information
uriva committed Dec 24, 2023
1 parent f178db7 commit 9eaffce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ const args = yargs(Deno.args)
yargs
.option("get", {
alias: "g",
description: "Get a value for a given key: `<secret>:<input json>``",
description: "Get a value for a given key: `<secret> <input json>`",
string: true,
})
.option("delete", {
alias: "d",
description:
"Deletes a value for a given key: `<secret>:<input json>``",
description: "Deletes a value for a given key: `<secret> <input json>`",
string: true,
}))
.command(
Expand Down
2 changes: 1 addition & 1 deletion cli/src/keyManipulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { callServer } from "./rpc.ts";
import { inputToCacheKey } from "../../client/src/index.ts";

const parseCacheIdAndKey = (hashKey: (...xs: any[]) => string, x: string) => {
const [cacheId, key] = x.split(":");
const [cacheId, key] = x.split(" ");
return { cacheId, key: hashKey(...JSON.parse(key)) };
};
const actOnKey = (action: string) => (args: string) => (secret: string) =>
Expand Down

0 comments on commit 9eaffce

Please sign in to comment.