Skip to content

Commit

Permalink
chore: rename info/error messages
Browse files Browse the repository at this point in the history
[EMA-4088]
  • Loading branch information
jetmirhalili11 committed Jul 11, 2024
1 parent 38d90b1 commit 17cfdc3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/api/action-flow-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ class ActionFlowApi {

public async exportRawAssets(packageId: string): Promise<Buffer> {
return httpClientV2.getFile(`/ems-automation/api/root/${packageId}/export/assets`).catch(e => {
throw new FatalError(`Problem getting action-flow assets: ${e}`);
throw new FatalError(`Problem getting Action Flow assets: ${e}`);
});
}

public async analyzeAssets(packageId: string): Promise<any> {
return httpClientV2.get(`/ems-automation/api/root/${packageId}/export/assets/analyze`).catch(e => {
throw new FatalError(`Problem analyzing action-flow assets: ${e}`);
throw new FatalError(`Problem analyzing Action Flow assets: ${e}`);
});
}

Expand All @@ -23,7 +23,7 @@ class ActionFlowApi {
};

return httpClientV2.postFile(`/ems-automation/api/root/${packageId}/import/assets`, data, params).catch(e => {
throw new FatalError(`Problem importing action-flow assets: ${e}`);
throw new FatalError(`Problem importing Action Flow assets: ${e}`);
});
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/content-cli-analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class Analyze {
public static actionFlows(program: CommanderStatic): CommanderStatic {
program
.command("action-flows")
.description("Analyze action-flows dependencies for a certain package")
.option("-p, --profile <profile>", "Profile which you want to use to analyze action-flows")
.requiredOption("-i, --packageId <packageId>", "ID of the package from which you want to export action-flows")
.description("Analyze Action Flows dependencies for a certain package")
.option("-p, --profile <profile>", "Profile which you want to use to analyze Action Flows")
.requiredOption("-i, --packageId <packageId>", "ID of the package from which you want to export Action Flows")
.option("-o, --outputToJsonFile", "Output the analyze result in a JSON file")
.action(async cmd => {
await new ActionFlowCommand().analyzeActionFlows(cmd.packageId, cmd.outputToJsonFile);
Expand Down
6 changes: 3 additions & 3 deletions src/content-cli-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export class Export {
public static actionFlows(program: CommanderStatic): CommanderStatic {
program
.command("action-flows")
.description("Command to export all action-flows in a package with their objects and dependencies")
.option("-p, --profile <profile>", "Profile which you want to use to export action-flows")
.requiredOption("-i, --packageId <packageId>", "ID of the package from which you want to export action-flows")
.description("Command to export all Action Flows in a package with their objects and dependencies")
.option("-p, --profile <profile>", "Profile which you want to use to export Action Flows")
.requiredOption("-i, --packageId <packageId>", "ID of the package from which you want to export Action Flows")
.option("-f, --file <file>", "Action flows metadata file (relative path)")
.action(async cmd => {
await new ActionFlowCommand().exportActionFlows(cmd.packageId, cmd.file);
Expand Down
8 changes: 4 additions & 4 deletions src/content-cli-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export class Import {
public static actionFlows(program: CommanderStatic): CommanderStatic {
program
.command("action-flows")
.description("Command to import all action-flows in a package with their objects and dependencies")
.option("-p, --profile <profile>", "Profile which you want to use to import action-flows")
.requiredOption("-i, --packageId <packageId>", "ID of the package to which you want to export action-flows")
.requiredOption("-f, --file <file>", "Exported action-flows file (relative path)")
.description("Command to import all Action Flows in a package with their objects and dependencies")
.option("-p, --profile <profile>", "Profile which you want to use to import Action Flows")
.requiredOption("-i, --packageId <packageId>", "ID of the package to which you want to export Action Flows")
.requiredOption("-f, --file <file>", "Exported Action Flows file (relative path)")
.requiredOption("-d, --dryRun", "Execute the import on dry run mode")
.option("-o, --outputToJsonFile", "Output the import result in a JSON file")
.action(async cmd => {
Expand Down
2 changes: 1 addition & 1 deletion src/services/action-flow/action-flow-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ActionFlowService {
this.attachMetadataFile(metadataFilePath, zip);
}

const fileName = "export_action-flows_" + uuidv4() + ".zip";
const fileName = "action-flows_export_" + uuidv4() + ".zip";
zip.writeZip(fileName);
logger.info(FileService.fileDownloadedMessage + fileName);
}
Expand Down

0 comments on commit 17cfdc3

Please sign in to comment.