From 177212c5e5c1eb5dd8d74f6f3fd49804278e0878 Mon Sep 17 00:00:00 2001 From: Zander Chase <130414180+vowelparrot@users.noreply.github.com> Date: Mon, 5 Jun 2023 11:29:29 -0700 Subject: [PATCH] Format CLI (#19) --- js/src/cli/main.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/src/cli/main.ts b/js/src/cli/main.ts index 3f5dacbc7..ecf62bf30 100644 --- a/js/src/cli/main.ts +++ b/js/src/cli/main.ts @@ -31,8 +31,7 @@ async function getDockerComposeCommand(): Promise { async function pprintServices(servicesStatus: any[]) { const services = []; for (const service of servicesStatus) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const serviceStatus: Record = { + const serviceStatus: Record = { Service: String(service["Service"]), Status: String(service["Status"]), }; @@ -78,7 +77,7 @@ async function pprintServices(servicesStatus: any[]) { "\nLANGCHAIN_TRACING_V2=true" + `\nLANGCHAIN_ENDPOINT=${langchainEndpoint}` ); - console.log(serviceMessage.join("\n")); + console.info(serviceMessage.join("\n")); } async function getNgrokUrl(): Promise { @@ -228,7 +227,7 @@ class PlusCommand { const servicesStatus = JSON.parse(result.stdout); if (servicesStatus) { console.info("The LangChainPlus server is currently running."); - console.info(pprintServices(servicesStatus)); + await pprintServices(servicesStatus); } else { console.info("The LangChainPlus server is not running."); }