chore: Format code.

This commit is contained in:
greysoh 2024-05-18 13:14:43 -04:00
parent 41013f46bb
commit 9d7c24a813
No known key found for this signature in database
GPG key ID: FE0F173B8FC01571
4 changed files with 15 additions and 9 deletions

View file

@ -57,19 +57,22 @@ const backends: Record<number, BackendBaseClass> = {};
const loggerEnv = {
development: {
transport: {
target: 'pino-pretty',
target: "pino-pretty",
options: {
translateTime: 'HH:MM:ss Z',
ignore: 'pid,hostname,time',
translateTime: "HH:MM:ss Z",
ignore: "pid,hostname,time",
},
},
},
production: true,
test: false,
}
};
const fastify = Fastify({
logger: (process.env.NODE_ENV != "production" ? loggerEnv.development : loggerEnv.production),
logger:
process.env.NODE_ENV == "production"
? loggerEnv.production
: loggerEnv.development,
trustProxy: Boolean(process.env.IS_BEHIND_PROXY),
});

View file

@ -43,7 +43,10 @@ export async function run(
"Asks for a password. Hides output",
);
addCommand.option("-s, --service-account, --service", "Turns the user into a service account");
addCommand.option(
"-s, --service-account, --service",
"Turns the user into a service account",
);
addCommand.action(
async (
@ -93,7 +96,7 @@ export async function run(
email,
password,
allowUnsafeGlobalTokens: options.isServiceAccount
allowUnsafeGlobalTokens: options.isServiceAccount,
});
if (response.status != 200) {

View file

@ -13,7 +13,7 @@ export async function runCopyID(
stream.write(
"Hey there! I think you're using ssh-copy-id. If this is an error, you may close this terminal.\n",
);
stream.write("Please wait...\n");
const keyData = await readFromKeyboard(stream, true);

View file

@ -1,6 +1,6 @@
import { readFile, writeFile, mkdir } from "node:fs/promises";
import { format } from "node:util";
import { timingSafeEqual } from "node:crypto";
import { format } from "node:util";
import parseArgsStringToArgv from "string-argv";
import baseAxios from "axios";