Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Changed entrypoint login scripts and updated cli executable to confluent
Browse files Browse the repository at this point in the history
  • Loading branch information
wcarlsen committed Apr 27, 2022
1 parent 5f955d6 commit 77ecf86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/login.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/expect
spawn ccloud login
spawn confluent login

expect "Email: "

Expand Down
4 changes: 2 additions & 2 deletions server/src/server/wrapper/connected/executeCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as readline from "readline";
import { CcloudSessionExpiredException, CliException } from "./../model/error";

export function executeCli(args: string[]): Promise<string[]> {
const cli = process.env.TIKA_CCLOUD_BIN_PATH ?? "ccloud";
const cli = process.env.TIKA_CCLOUD_BIN_PATH ?? "confluent";

return new Promise((resolve, reject) => {
const lines: Array<string> = [];
Expand All @@ -21,7 +21,7 @@ export function executeCli(args: string[]): Promise<string[]> {
return resolve(lines);
}

if (errLines.some((l: string): boolean => l.includes("You must log in to run that command."))) {
if (errLines.some((l: string): boolean => l.includes("You must be logged in to run this command"))) {
return reject(new CcloudSessionExpiredException());
}

Expand Down

0 comments on commit 77ecf86

Please sign in to comment.