blob: b55bfa67c2b195ba5d75ee01fde8ff784a0b5d79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { getAPIClient } from "@/lib/trpc";
import { Command } from "@commander-js/extra-typings";
export const whoamiCmd = new Command()
.name("whoami")
.description("returns info about the owner of this API key")
.action(async () => {
const resp = await getAPIClient().users.whoami.query();
console.log(resp);
});
|