Skip to content

Commit

Permalink
add new logo for cbimport
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh-couchbase committed Oct 30, 2023
1 parent e16d625 commit 8e05e44
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 7 additions & 0 deletions images/dark/database-import.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions images/light/database-import.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/commands/tools/dataImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ export class DataImport {

if (currentFormat) {
this.format = currentFormat;
console.log(currentFormat);
logger.info("detected format " + currentFormat);
} else {
this.format = "";
Expand Down Expand Up @@ -780,7 +779,7 @@ export class DataImport {
"..",
"images",
"dark",
"export_dark.svg"
"database-import.svg"
)
),
light: vscode.Uri.file(
Expand All @@ -790,7 +789,7 @@ export class DataImport {
"..",
"images",
"light",
"export_light.svg"
"database-import.svg"
)
),
};
Expand Down
5 changes: 2 additions & 3 deletions src/tools/CBImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ export class CBImport {
if(!connection){
return;
}
console.log(importData);

let cmd: string[] | Error;
// CMD Builder
try {
cmd = await this.cmdBuilder(importData, connection);
if (cmd instanceof Error) {
throw cmd;
}
console.log(cmd);
} catch(err) {
logger.error("Error while building command for CB Import, please check values and try again");
logger.debug(err);
Expand All @@ -47,7 +46,7 @@ export class CBImport {
try {
const terminal = vscode.window.createTerminal("CBImport");
let text = cmd.join(" ");
console.log(text);
logger.info("CB Import Command to run: "+ text);

terminal.sendText(text);
terminal.show();
Expand Down

0 comments on commit 8e05e44

Please sign in to comment.