Skip to content

Commit

Permalink
Format CLI (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
vowelparrot authored Jun 5, 2023
1 parent 42c043d commit 177212c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/src/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ async function getDockerComposeCommand(): Promise<string[]> {
async function pprintServices(servicesStatus: any[]) {
const services = [];
for (const service of servicesStatus) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const serviceStatus: Record<string, any> = {
const serviceStatus: Record<string, string> = {
Service: String(service["Service"]),
Status: String(service["Status"]),
};
Expand Down Expand Up @@ -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<string> {
Expand Down Expand Up @@ -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.");
}
Expand Down

0 comments on commit 177212c

Please sign in to comment.