blob: 2b32f2f08462db9b28f5e5763ae4a61e16773401 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { Command } from "@commander-js/extra-typings";
import { getAPIClient } from "lib/trpc";
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);
});
|