Skip to content

Commit

Permalink
Doc: Updated doc reviewed UI texts
Browse files Browse the repository at this point in the history
  • Loading branch information
antonyagustine committed Nov 21, 2023
1 parent 8ed35fb commit e31cf15
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 52 deletions.
40 changes: 20 additions & 20 deletions packages/contentstack-audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ COMMON FLAGS
-d, --data-dir=<value> Path where the data is stored
TABLE FLAGS
--columns=<value> do not truncate output to fit screen
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-truncate do not truncate output to fit screen
--sort=<value> property to sort by (prepend '-' for descending)
--columns=<value> Show only the specified columns (comma-separated)
--csv The output is in the CSV format [alias: --output=csv]
--filter=<value> Filter property by partial string matching. For example: name=foo
--no-truncate The output is not truncated to fit the screen
--sort=<value> Property to sort by (prepend '-' for descending)
DESCRIPTION
Perform audits and find possible errors in the exported Contentstack data
Expand Down Expand Up @@ -115,11 +115,11 @@ COMMON FLAGS
-d, --data-dir=<value> Path where the data is stored
TABLE FLAGS
--columns=<value> do not truncate output to fit screen
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-truncate do not truncate output to fit screen
--sort=<value> property to sort by (prepend '-' for descending)
--columns=<value> Show only the specified columns (comma-separated)
--csv The output is in the CSV format [alias: --output=csv]
--filter=<value> Filter property by partial string matching. For example: name=foo
--no-truncate The output is not truncated to fit the screen
--sort=<value> Property to sort by (prepend '-' for descending)
DESCRIPTION
Perform audits and fix possible errors in the exported Contentstack data.
Expand Down Expand Up @@ -162,11 +162,11 @@ COMMON FLAGS
-d, --data-dir=<value> Path where the data is stored
TABLE FLAGS
--columns=<value> do not truncate output to fit screen
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-truncate do not truncate output to fit screen
--sort=<value> property to sort by (prepend '-' for descending)
--columns=<value> Show only the specified columns (comma-separated)
--csv The output is in the CSV format [alias: --output=csv]
--filter=<value> Filter property by partial string matching. For example: name=foo
--no-truncate The output is not truncated to fit the screen
--sort=<value> Property to sort by (prepend '-' for descending)
DESCRIPTION
Perform audits and find possible errors in the exported Contentstack data
Expand Down Expand Up @@ -214,11 +214,11 @@ COMMON FLAGS
-d, --data-dir=<value> Path where the data is stored
TABLE FLAGS
--columns=<value> do not truncate output to fit screen
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-truncate do not truncate output to fit screen
--sort=<value> property to sort by (prepend '-' for descending)
--columns=<value> Show only the specified columns (comma-separated)
--csv The output is in the CSV format [alias: --output=csv]
--filter=<value> Filter property by partial string matching. For example: name=foo
--no-truncate The output is not truncated to fit the screen
--sort=<value> Property to sort by (prepend '-' for descending)
DESCRIPTION
Perform audits and fix possible errors in the exported Contentstack data.
Expand Down
10 changes: 5 additions & 5 deletions packages/contentstack-audit/src/messages/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const errors = {};

const tableColumnDescriptions = {
TABLE_COLUMN: 'only show provided columns (comma-separated)',
TABLE_SORT: "property to sort by (prepend '-' for descending)",
TABLE_CSV: 'output is csv format [alias: --output=csv]',
TABLE_FILTER: 'filter property by partial string matching, ex: name=foo',
'TABLE_NO-TRUNCATE': 'do not truncate output to fit screen',
TABLE_COLUMNS: 'Show only the specified columns (comma-separated)',
TABLE_SORT: "Property to sort by (prepend '-' for descending)",
TABLE_CSV: 'The output is in the CSV format [alias: --output=csv]',
TABLE_FILTER: 'Filter property by partial string matching. For example: name=foo',
'TABLE_NO-TRUNCATE': 'The output is not truncated to fit the screen',
};

const commonMsg = {
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-audit/src/util/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function getTableFlags(
flags[element].helpGroup = 'TABLE';

const descriptionKey = `TABLE_${element.toUpperCase()}` as keyof typeof tableColumnDescriptions;
flags.columns.description = tableColumnDescriptions[descriptionKey] ?? flags.columns.description;
flags[element].description = tableColumnDescriptions[descriptionKey] ?? flags[element].description;
});

return flags;
Expand Down
52 changes: 26 additions & 26 deletions packages/contentstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ COMMON FLAGS
-d, --data-dir=<value> Path where the data is stored
TABLE FLAGS
--columns=<value> do not truncate output to fit screen
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-truncate do not truncate output to fit screen
--sort=<value> property to sort by (prepend '-' for descending)
--columns=<value> Show only the specified columns (comma-separated)
--csv The output is in the CSV format [alias: --output=csv]
--filter=<value> Filter property by partial string matching. For example: name=foo
--no-truncate The output is not truncated to fit the screen
--sort=<value> Property to sort by (prepend '-' for descending)
DESCRIPTION
Perform audits and find possible errors in the exported Contentstack data
Expand Down Expand Up @@ -179,11 +179,11 @@ COMMON FLAGS
-d, --data-dir=<value> Path where the data is stored
TABLE FLAGS
--columns=<value> do not truncate output to fit screen
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-truncate do not truncate output to fit screen
--sort=<value> property to sort by (prepend '-' for descending)
--columns=<value> Show only the specified columns (comma-separated)
--csv The output is in the CSV format [alias: --output=csv]
--filter=<value> Filter property by partial string matching. For example: name=foo
--no-truncate The output is not truncated to fit the screen
--sort=<value> Property to sort by (prepend '-' for descending)
DESCRIPTION
Perform audits and fix possible errors in the exported Contentstack data.
Expand Down Expand Up @@ -2380,11 +2380,11 @@ COMMON FLAGS
-d, --data-dir=<value> Path where the data is stored
TABLE FLAGS
--columns=<value> do not truncate output to fit screen
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-truncate do not truncate output to fit screen
--sort=<value> property to sort by (prepend '-' for descending)
--columns=<value> Show only the specified columns (comma-separated)
--csv The output is in the CSV format [alias: --output=csv]
--filter=<value> Filter property by partial string matching. For example: name=foo
--no-truncate The output is not truncated to fit the screen
--sort=<value> Property to sort by (prepend '-' for descending)
DESCRIPTION
Perform audits and find possible errors in the exported Contentstack data
Expand Down Expand Up @@ -2432,11 +2432,11 @@ COMMON FLAGS
-d, --data-dir=<value> Path where the data is stored
TABLE FLAGS
--columns=<value> do not truncate output to fit screen
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-truncate do not truncate output to fit screen
--sort=<value> property to sort by (prepend '-' for descending)
--columns=<value> Show only the specified columns (comma-separated)
--csv The output is in the CSV format [alias: --output=csv]
--filter=<value> Filter property by partial string matching. For example: name=foo
--no-truncate The output is not truncated to fit the screen
--sort=<value> Property to sort by (prepend '-' for descending)
DESCRIPTION
Perform audits and fix possible errors in the exported Contentstack data.
Expand Down Expand Up @@ -3363,7 +3363,7 @@ EXAMPLES
$ csdx plugins
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.4/src/commands/plugins/index.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.3.2/src/commands/plugins/index.ts)_

## `csdx plugins:install PLUGIN...`

Expand Down Expand Up @@ -3428,7 +3428,7 @@ EXAMPLES
$ csdx plugins:inspect myplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.4/src/commands/plugins/inspect.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.3.2/src/commands/plugins/inspect.ts)_

## `csdx plugins:install PLUGIN...`

Expand Down Expand Up @@ -3468,7 +3468,7 @@ EXAMPLES
$ csdx plugins:install someuser/someplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.4/src/commands/plugins/install.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.3.2/src/commands/plugins/install.ts)_

## `csdx plugins:link PLUGIN`

Expand Down Expand Up @@ -3497,7 +3497,7 @@ EXAMPLES
$ csdx plugins:link myplugin
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.4/src/commands/plugins/link.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.3.2/src/commands/plugins/link.ts)_

## `csdx plugins:uninstall PLUGIN...`

Expand Down Expand Up @@ -3545,7 +3545,7 @@ ALIASES
$ csdx plugins:remove
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.4/src/commands/plugins/uninstall.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.3.2/src/commands/plugins/uninstall.ts)_

## `csdx plugins:uninstall PLUGIN...`

Expand Down Expand Up @@ -3586,7 +3586,7 @@ DESCRIPTION
Update installed plugins.
```

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.4/src/commands/plugins/update.ts)_
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.3.2/src/commands/plugins/update.ts)_

## `csdx tokens`

Expand Down

0 comments on commit e31cf15

Please sign in to comment.