Skip to content

Commit

Permalink
remove-gamla
Browse files Browse the repository at this point in the history
  • Loading branch information
uriva committed Mar 11, 2024
1 parent 4526e7a commit 53425f1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions cli/src/keyManipulation.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { callServer } from "./rpc.ts";
import { inputToCacheKey } from "../../client/src/index.ts";
import { sideLog } from "gamla";

const actOnKey = (method: string) => (args: string) => () => {
const [token, cacheId, key] = args.split(" ");
return callServer("", "POST", {
method,
params: {
cacheId,
key: inputToCacheKey(token, undefined)(...sideLog(JSON.parse(key))),
key: inputToCacheKey(token, undefined)(...JSON.parse(key)),
},
})(token);
};
Expand Down
1 change: 0 additions & 1 deletion cli/src/rpc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { sideLog } from "gamla";
const serverURL = Deno.env.get("RMMBR_SERVER");

export const callServer = (
Expand Down
3 changes: 0 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"imports": {
"gamla": "https://deno.land/x/[email protected]/src/index.ts"
},
"tasks": {
"server": "export REDIS_PORT=6666; export REDIS_URL=127.0.0.1; export REDIS_PASSWORD=12345; export PORT=8000; deno run --allow-read --allow-net --allow-env server/src/index.ts",
"server-repl": "export REDIS_PORT=6666; export REDIS_URL=127.0.0.1; export REDIS_PASSWORD=12345; export PORT=8000; deno",
Expand Down

0 comments on commit 53425f1

Please sign in to comment.