Skip to content
Snippets Groups Projects
Commit e3e14141 authored by kelly.nguyen's avatar kelly.nguyen
Browse files

remove test option

parent d01ad018
Branches
No related tags found
No related merge requests found
Pipeline #33702 canceled
...@@ -20,7 +20,6 @@ class UserCreateResumeCommand extends CommanderCommand { ...@@ -20,7 +20,6 @@ class UserCreateResumeCommand extends CommanderCommand {
.requiredOption('-u, --id <id>', 'id of the user') .requiredOption('-u, --id <id>', 'id of the user')
.requiredOption('-n, --nameFile <string>', 'path of the file') .requiredOption('-n, --nameFile <string>', 'path of the file')
.option('--full', 'full export') .option('--full', 'full export')
.option('--test', 'test command')
.action(this.commandAction.bind(this)); .action(this.commandAction.bind(this));
} }
...@@ -41,10 +40,6 @@ class UserCreateResumeCommand extends CommanderCommand { ...@@ -41,10 +40,6 @@ class UserCreateResumeCommand extends CommanderCommand {
}).start(); }).start();
try { try {
if (options.test) {
const res = await DojoBackendManager.createStaticPage(options.id);
console.log(res);
} else {
const resumeCreated = await DojoBackendManager.createResumeUser(options.id); const resumeCreated = await DojoBackendManager.createResumeUser(options.id);
if (!resumeCreated) { if (!resumeCreated) {
...@@ -89,7 +84,6 @@ class UserCreateResumeCommand extends CommanderCommand { ...@@ -89,7 +84,6 @@ class UserCreateResumeCommand extends CommanderCommand {
// END COMPLET EXPORT // END COMPLET EXPORT
await this.sleep(2000); await this.sleep(2000);
}
this.downloadFile(options).then(() => { this.downloadFile(options).then(() => {
resumeSpinner.succeed('File downloaded and saved successfully.'); resumeSpinner.succeed('File downloaded and saved successfully.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment