Skip to content

Commit 0a7b7d2

Browse files
committed
updated ui texts
1 parent bd92c6a commit 0a7b7d2

File tree

16 files changed

+680
-2538
lines changed

16 files changed

+680
-2538
lines changed

package-lock.json

Lines changed: 633 additions & 2495 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-audit/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ EXAMPLES
269269
$ csdx plugins
270270
```
271271

272-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/index.ts)_
272+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/index.ts)_
273273

274274
## `csdx plugins:add PLUGIN`
275275

@@ -343,7 +343,7 @@ EXAMPLES
343343
$ csdx plugins:inspect myplugin
344344
```
345345

346-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/inspect.ts)_
346+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/inspect.ts)_
347347

348348
## `csdx plugins:install PLUGIN`
349349

@@ -392,7 +392,7 @@ EXAMPLES
392392
$ csdx plugins:install someuser/someplugin
393393
```
394394

395-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/install.ts)_
395+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/install.ts)_
396396

397397
## `csdx plugins:link PATH`
398398

@@ -423,7 +423,7 @@ EXAMPLES
423423
$ csdx plugins:link myplugin
424424
```
425425

426-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/link.ts)_
426+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/link.ts)_
427427

428428
## `csdx plugins:remove [PLUGIN]`
429429

@@ -464,7 +464,7 @@ FLAGS
464464
--reinstall Reinstall all plugins after uninstalling.
465465
```
466466

467-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/reset.ts)_
467+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/reset.ts)_
468468

469469
## `csdx plugins:uninstall [PLUGIN]`
470470

@@ -492,7 +492,7 @@ EXAMPLES
492492
$ csdx plugins:uninstall myplugin
493493
```
494494

495-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/uninstall.ts)_
495+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/uninstall.ts)_
496496

497497
## `csdx plugins:unlink [PLUGIN]`
498498

@@ -536,5 +536,5 @@ DESCRIPTION
536536
Update installed plugins.
537537
```
538538

539-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/update.ts)_
539+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/update.ts)_
540540
<!-- commandsstop -->

packages/contentstack-import-setup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-import-setup",
33
"description": "Contentstack CLI plugin to setup the mappers and configurations for the import command",
4-
"version": "1.0.0-beta.2",
4+
"version": "1.0.0",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {

packages/contentstack-import-setup/src/commands/cm/stacks/import-setup.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ import { setupImportConfig, log } from '../../../utils';
1616
import { ImportSetup } from '../../../import';
1717

1818
export default class ImportSetupCommand extends Command {
19-
static description = messageHandler.parse('Import content from a stack');
19+
static description = messageHandler.parse(
20+
'Helps to generate mappers and backup folder for importing (overwriting) specific modules',
21+
);
2022

2123
static examples: string[] = [
2224
`csdx cm:stacks:import-setup --stack-api-key <target_stack_api_key> --data-dir <path/of/export/destination/dir> --modules <module_name, module_name>`,
@@ -31,20 +33,22 @@ export default class ImportSetupCommand extends Command {
3133
}),
3234
'data-dir': flags.string({
3335
char: 'd',
34-
description: 'path and location where data is stored',
36+
description: `The path or the location in your file system where the content, you intend to import, is stored. For example, -d "C:\\Users\\Name\\Desktop\\cli\\content". If the export folder has branches involved, then the path should point till the particular branch. For example, “-d "C:\\Users\\Name\\Desktop\\cli\\content\\branch_name"`,
3537
}),
3638
alias: flags.string({
3739
char: 'a',
38-
description: 'alias of the management token',
40+
description: 'The management token of the destination stack where you will import the content.',
3941
}),
40-
modules: flags.string({
42+
module: flags.string({
4143
options: ['global-fields', 'content-types', 'entries'], // only allow the value to be from a discrete set
42-
description: '[optional] specific module name',
44+
description:
45+
'[optional] Specify the modules/module to import into the target stack. currently options are global-fields, content-types, entries',
4346
multiple: true,
4447
}),
4548
branch: flags.string({
4649
char: 'B',
47-
description: "The name of the target stack's branch",
50+
description:
51+
"The name of the branch where you want to import your content. If you don't mention the branch name, then by default the content will be imported to the main branch.",
4852
parse: printFlagDeprecation(['-B'], ['--branch']),
4953
}),
5054
};
@@ -66,18 +70,18 @@ export default class ImportSetupCommand extends Command {
6670
await importSetup.start();
6771
log(
6872
importSetupConfig,
69-
`Successfully created backup folder and mapper files for the stack with the API key ${importSetupConfig.apiKey}.`,
73+
`Backup folder and mapper files have been successfully created for the stack using the API key ${importSetupConfig.apiKey}.`,
7074
'success',
7175
);
7276
log(
7377
importSetupConfig,
74-
`The backup folder created at '${pathValidator(path.join(importSetupConfig.backupDir))}'`,
78+
`The backup folder has been created at '${pathValidator(path.join(importSetupConfig.backupDir))}'.`,
7579
'success',
7680
);
7781
} catch (error) {
7882
log(
7983
{ data: '' } as ImportConfig,
80-
`Failed to create backup folder and mapper files - ${formatError(error)}`,
84+
`Failed to create the backup folder and mapper files: ${formatError(error)}`,
8185
'error',
8286
);
8387
}

packages/contentstack-import-setup/src/import/import-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class ImportSetup {
6868
const moduleInstance = new ModuleClass(modulePayload);
6969
await moduleInstance.start();
7070
} catch (error) {
71-
log(this.config, `Error importing '${moduleName}': ${formatError(error)}`, 'error');
71+
log(this.config, `Error occurred while importing '${moduleName}'`, 'error');
7272
throw error;
7373
}
7474
}

packages/contentstack-import-setup/src/import/modules/assets.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export default class AssetImportSetup extends BaseImportSetup {
4141
try {
4242
fsUtil.makeDirectory(this.mapperDirPath);
4343
await this.fetchAndMapAssets();
44-
log(this.config, `Generated required setup files for asset`, 'success');
44+
log(this.config, `The required setup files for the asset have been generated successfully.`, 'success');
4545
} catch (error) {
46-
log(this.config, `Error generating asset mapper: ${formatError(error)}`, 'error');
46+
log(this.config, `Error occurred while generating the asset mapper: ${formatError(error)}.`, 'error');
4747
}
4848
}
4949

@@ -67,18 +67,18 @@ export default class AssetImportSetup extends BaseImportSetup {
6767
if (items.length === 1) {
6868
this.assetUidMapper[uid] = items[0].uid;
6969
this.assetUrlMapper[url] = items[0].url;
70-
log(this.config, `Mapped asset: '${title}'`, 'info');
70+
log(this.config, `Mapped asset successfully: '${title}'`, 'info');
7171
} else if (items.length > 1) {
7272
this.duplicateAssets[uid] = items.map((asset: any) => {
7373
return { uid: asset.uid, title: asset.title, url: asset.url };
7474
});
75-
log(this.config, `Multiple assets found with title '${title}'`, 'info');
75+
log(this.config, `Multiple assets found with the title '${title}'.`, 'info');
7676
} else {
7777
log(this.config, `Asset with title '${title}' not found in the stack!`, 'info');
7878
}
7979
};
8080
const onReject = ({ error, apiData: { title } = undefined }: any) => {
81-
log(this.config, `${title} asset mapping failed.!`, 'error');
81+
log(this.config, `Failed to map the asset '${title}'.`, 'error');
8282
log(this.config, formatError(error), 'error');
8383
};
8484

@@ -116,7 +116,7 @@ export default class AssetImportSetup extends BaseImportSetup {
116116
}
117117
if (!isEmpty(this.duplicateAssets)) {
118118
fsUtil.writeFile(this.duplicateAssetPath, this.duplicateAssets);
119-
log(this.config, `Duplicate asset files store here ${this.duplicateAssetPath}`, 'info');
119+
log(this.config, `Duplicate asset files are stored at: ${this.duplicateAssetPath}.`, 'info');
120120
}
121121
}
122122
}

packages/contentstack-import-setup/src/import/modules/content-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export default class ContentTypesImportSetup extends BaseImportSetup {
1313
async start() {
1414
try {
1515
await this.setupDependencies();
16-
log(this.config, `Generate required setup files for content types`, 'success');
16+
log(this.config, `The required setup files for content types have been generated successfully.`, 'success');
1717
} catch (error) {
18-
log(this.config, `Error generating ${error.message}`, 'error');
18+
log(this.config, `Error occurred while generating the content type mapper: ${error.message}. 'error');
1919
}
2020
}
2121
}

packages/contentstack-import-setup/src/import/modules/entries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export default class EntriesImportSetup extends BaseImportSetup {
1010
async start() {
1111
try {
1212
await this.setupDependencies();
13-
log(this.config, `Generate required setup files for entries`, 'success');
13+
log(this.config, `The required setup files for entries have been generated successfully.`, 'success');
1414
} catch (error) {
15-
log(this.config, `Error generating ${error.message}`, 'error');
15+
log(this.config, `Error occurred while generating the entry mapper: ${error.message}.`, 'error');
1616
}
1717
}
1818
}

packages/contentstack-import-setup/src/import/modules/extensions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ export default class ExtensionImportSetup {
4141
for (const extension of Object.values(extensions) as any) {
4242
const targetExtension: any = await this.getExtension(extension);
4343
if (!targetExtension) {
44-
log(this.config, `Extension with title '${extension.title}' not found in the stack!`, 'info');
44+
log(this.config, `Extension with the title '${extension.title}' not found in the stack.`, 'info');
4545
continue;
4646
}
4747
this.extensionMapper[extension.uid] = targetExtension.uid;
4848
}
4949

5050
await fsUtil.writeFile(this.extUidMapperPath, this.extensionMapper);
5151

52-
log(this.config, `Generated required setup files for extension`, 'success');
52+
log(this.config, `The required setup files for extensions have been generated successfully.`, 'success');
5353
} else {
54-
log(this.config, 'No extensions found in the content folder!', 'error');
54+
log(this.config, 'No extensions found in the content folder.', 'error');
5555
}
5656
} catch (error) {
57-
log(this.config, `Error generating extension mapper: ${formatError(error)}`, 'error');
57+
log(this.config, `Error occurred while generating the extension mapper: ${formatError(error)}.`, 'error');
5858
}
5959
}
6060

packages/contentstack-import-setup/src/import/modules/global-fields.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export default class GlobalFieldsImportSetup extends BaseImportSetup {
1212
async start() {
1313
try {
1414
await this.setupDependencies();
15-
log(this.config, `Generate required setup files for global fields`, 'success');
15+
log(this.config, `The required setup files for global fields have been generated successfully.`, 'success');
1616
} catch (error) {
17-
log(this.config, `Error generating ${error.message}`, 'error');
17+
log(this.config, `Error occurred while generating the global field mapper: ${error.message}.`, 'error');
1818
}
1919
}
2020
}

0 commit comments

Comments
 (0)