Fix CLI client
This commit is contained in:
parent
015ecbd460
commit
6f201680d3
|
@ -1,7 +1,9 @@
|
||||||
import { Logger } from "@util/Logger";
|
import { Logger } from "@util/Logger";
|
||||||
import { createInterface, type ReadLine } from "readline";
|
import { createInterface, type ReadLine } from "readline";
|
||||||
import { EventEmitter } from "events";
|
import { EventEmitter } from "events";
|
||||||
import trpc from "@util/api/trpc";
|
import gettRPC from "@util/api/trpc";
|
||||||
|
|
||||||
|
const trpc = gettRPC(process.env.CLI_FISHING_TOKEN as string);
|
||||||
|
|
||||||
// no typedefs :/
|
// no typedefs :/
|
||||||
const cliMd = require("cli-markdown").default;
|
const cliMd = require("cli-markdown").default;
|
||||||
|
|
|
@ -10,7 +10,7 @@ export function gettRPC(token: string) {
|
||||||
// url: "http://localhost:3000",
|
// url: "http://localhost:3000",
|
||||||
// headers() {
|
// headers() {
|
||||||
// return {
|
// return {
|
||||||
// Authorization: apiToken
|
// Authorization: token
|
||||||
// };
|
// };
|
||||||
// }
|
// }
|
||||||
// }),
|
// }),
|
||||||
|
|
Loading…
Reference in New Issue