Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
8eb2965
change master locale fix, change master locale script support for loc…
Jun 11, 2026
3bf2ce8
Merge branch 'development' of github.com:contentstack/cli-plugins int…
Jun 11, 2026
c3953ef
fixes three related pagination bugs in the command's org user fetch …
cs-raj Jun 19, 2026
4bcaea7
issues-jira.yml
Aravind-Kumar-cstk Jun 19, 2026
6439829
version bump
cs-raj Jun 19, 2026
27d8b97
Merge pull request #234 from contentstack/fix/DX-9107-dev
cs-raj Jun 19, 2026
3b0458a
Merge branch 'main' into fix/back-merge
harshitha-cstk Jun 19, 2026
d38e617
Merge pull request #238 from contentstack/fix/back-merge
harshitha-cstk Jun 19, 2026
e81a662
Merge pull request #236 from contentstack/development
harshitha-cstk Jun 22, 2026
64817f3
Merge pull request #239 from contentstack/main
harshitha-cstk Jun 23, 2026
b150485
fixed unit test cases
Jun 24, 2026
df4fe43
Upgraded Node version to 22 for plugins and Readme Update
cs-raj Jun 25, 2026
752f05d
Dependency Update
cs-raj Jun 25, 2026
da5c9ea
Merge pull request #245 from contentstack/fix/DX-9334
harshitha-cstk Jun 26, 2026
e86d7a7
feat: migrate cli-plugins ESLint configs to flat config format
harshitha-cstk Jun 26, 2026
7a56bec
Merge branch 'development' into enh/dx-9335-eslint-upgrade
harshitha-cstk Jun 26, 2026
078fbe0
Merge pull request #246 from contentstack/enh/dx-9335-eslint-upgrade
harshitha-cstk Jun 26, 2026
0ff8360
Merge branch 'development' of github.com:contentstack/cli-plugins int…
Jun 29, 2026
6d8b11c
Merge pull request #231 from contentstack/fix/DX-8939
shafeeqd959 Jun 29, 2026
13237c7
chore: update lockfile
Jun 29, 2026
738be48
Merge pull request #209 from contentstack/feat/DX-8625
naman-contentstack Jun 29, 2026
e8f151e
version bump
harshitha-cstk Jun 29, 2026
f087a7e
version bump
harshitha-cstk Jun 29, 2026
19c5041
fix(regex-validate): remove eslint-config-oclif-typescript from flat …
cs-raj Jun 29, 2026
d25ad18
lock file update
cs-raj Jun 29, 2026
8f301ef
upgrade eslint-config-oclif-typescript
harshitha-cstk Jun 29, 2026
c0d0aba
Merge pull request #250 from contentstack/fix/version-bumps
harshitha-cstk Jun 29, 2026
0bd4b21
Merge pull request #253 from contentstack/fix/dev
cs-raj Jun 29, 2026
1293503
Merge pull request #247 from contentstack/development
harshitha-cstk Jun 29, 2026
fa179b3
version bump
harshitha-cstk Jun 29, 2026
aea8fd2
update pnpm lock file
harshitha-cstk Jun 29, 2026
da53c1f
Merge branch 'v2-dev' into fix/version-bump-v2
harshitha-cstk Jun 29, 2026
1f1b75b
Merge pull request #254 from contentstack/fix/version-bump-v2
harshitha-cstk Jun 29, 2026
22633be
Merge pull request #248 from contentstack/v2-dev
harshitha-cstk Jun 29, 2026
55b8e09
version bump import setup plugin
harshitha-cstk Jun 29, 2026
cc3c589
Merge pull request #255 from contentstack/fix/version-bump--v2
harshitha-cstk Jun 29, 2026
c528e1f
Merge pull request #256 from contentstack/v2-beta
harshitha-cstk Jun 30, 2026
74ab428
fix: show login error on console and improve API key validation
harshitha-cstk Jun 30, 2026
a144f07
Merge branch 'main' into fix/back-merge-development-v2
harshitha-cstk Jun 30, 2026
c03512c
update pnpm lock file
harshitha-cstk Jun 30, 2026
aa3ed22
Merge pull request #259 from contentstack/fix/back-merge-development-v2
harshitha-cstk Jun 30, 2026
7af59f5
Merge branch 'v2-dev' into fix/dx-7893-login-error-validate-api-key
harshitha-cstk Jun 30, 2026
ce01740
pnpm lock update
harshitha-cstk Jun 30, 2026
d840c17
fix(flags): normalize short flag consistency across cli-cm-regex-vali…
cs-raj Jun 30, 2026
1fcb265
updated short flags of external commands
cs-raj Jul 1, 2026
ebefac5
updated unit test workflow
cs-raj Jul 1, 2026
956306e
updated unit test workflow
cs-raj Jul 1, 2026
2136d28
updated unit test workflow and added parallel execution
cs-raj Jul 1, 2026
c03672c
fixed test case and removed parallel test execution
cs-raj Jul 1, 2026
000ca75
fixed seed tests
cs-raj Jul 1, 2026
c57bef9
Removed character flag from the command and removed seed test from wo…
cs-raj Jul 1, 2026
1116da1
fix: show backup folder path on command completion
harshitha-cstk Jul 2, 2026
0c8b660
Revert "fix: show backup folder path on command completion"
harshitha-cstk Jul 2, 2026
504e7b6
Merge branch 'v2-dev' into fix/test-case-import-setup
harshitha-cstk Jul 2, 2026
8292c50
Merge pull request #242 from contentstack/fix/test-case-import-setup
cs-raj Jul 2, 2026
79bdfae
Merge branch 'v2-dev' into fix/dx-7895-import-setup-backup-folder-path
harshitha-cstk Jul 2, 2026
5cdde34
Merge branch 'v2-dev' into fix/dx-7893-login-error-validate-api-key
harshitha-cstk Jul 2, 2026
33c2959
Merge pull request #258 from contentstack/fix/dx-7893-login-error-val…
harshitha-cstk Jul 2, 2026
5d0fe3c
Merge branch 'v2-dev' into fix/dx-7895-import-setup-backup-folder-path
harshitha-cstk Jul 3, 2026
c2c6b63
fix: show backup folder path on command completion
harshitha-cstk Jul 3, 2026
ca3011f
fix(export,import): validate --module flag value before execution
cs-raj Jul 3, 2026
a7b2e78
Merge pull request #264 from contentstack/fix/dx-7895-import-setup-ba…
harshitha-cstk Jul 3, 2026
f2cc5a8
version bump
harshitha-cstk Jul 3, 2026
695cc32
Merge branch 'v2-dev' into fix/DX-9444
cs-raj Jul 3, 2026
afb8915
Merge branch 'v2-dev' into fix/DX-9363
netrajpatel Jul 3, 2026
0ec25d9
fixed the commits
cs-raj Jul 3, 2026
efaaf46
Merge pull request #266 from contentstack/fix/DX-9444
cs-raj Jul 3, 2026
5410870
Merge branch 'v2-dev' into fix/DX-9363
netrajpatel Jul 3, 2026
0a1eab2
version bump
harshitha-cstk Jul 3, 2026
d6acd8b
Merge branch 'v2-dev' into fix/version-bump
harshitha-cstk Jul 3, 2026
e22e8b6
Merge pull request #261 from contentstack/fix/DX-9363
cs-raj Jul 3, 2026
c78ebd7
pnpm update
harshitha-cstk Jul 3, 2026
6c89dbd
Merge branch 'v2-dev' into fix/version-bump
harshitha-cstk Jul 3, 2026
3cb1c6e
override added
cs-raj Jul 3, 2026
e32c2a5
lock file update
cs-raj Jul 3, 2026
3bf33df
Merge pull request #267 from contentstack/fix/version-bump
harshitha-cstk Jul 3, 2026
66a9bf9
feat: enhance AM with asset publishing
Jul 3, 2026
7ee5d17
version bump
harshitha-cstk Jul 3, 2026
388afbe
Merge pull request #269 from contentstack/fix/version-bumps
harshitha-cstk Jul 3, 2026
933e6b9
added publishing rules and varient entries
cs-raj Jul 3, 2026
3c2632c
Merge pull request #270 from contentstack/fix/v2-dev
cs-raj Jul 3, 2026
b1e3722
Merge pull request #265 from contentstack/v2-dev
OMpawar-21 Jul 6, 2026
d9ed638
Merge pull request #274 from contentstack/v2-beta
OMpawar-21 Jul 6, 2026
59464c4
Merge branch 'v2-dev' into feat/DX-9443
Jul 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release-v2-beta-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,13 @@ jobs:
access: public
tag: beta
# External Migrate
- name: Publishing external-migrate (Production)
- name: Publishing external-migrate (Beta)
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-external-migrate/package.json
tag: latest
access: public
tag: beta

- name: Create Production Release
id: create_release
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ jobs:
working-directory: ./packages/contentstack-bootstrap
run: npm run test

# - name: Run tests for Contentstack Import Setup
# working-directory: ./packages/contentstack-import-setup
# run: npm run test:unit

- name: Run tests for Contentstack Branches
working-directory: ./packages/contentstack-branches
run: npm run test:unit
Expand Down Expand Up @@ -86,7 +82,20 @@ jobs:
- name: Run tests for Contentstack Bulk Operations
working-directory: ./packages/contentstack-bulk-operations
run: npm test

- name: Run tests for Contentstack Variants
working-directory: ./packages/contentstack-variants
run: npm run test

- name: Run tests for Contentstack Asset Management
working-directory: ./packages/contentstack-asset-management
run: npm run test:unit

- name: Run tests for Contentstack Clone
working-directory: ./packages/contentstack-clone
run: npm run test:unit

# - name: Run tests for Contentstack External Migrate
# working-directory: ./packages/contentstack-external-migrate
# run: npm test

34 changes: 8 additions & 26 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
fileignoreconfig:
- filename: pnpm-lock.yaml
checksum: 49856e7bac5d502aea70519fb31c86e6a0deb6afdfdd911162dfd43188fe3938
- filename: packages/contentstack-apps-cli/eslint.config.js
checksum: 22e7f364a33612f0100f7b5f6e2f1d28491298cbaca1debf806cd0a988c8bb2c
- filename: packages/contentstack-asset-management/eslint.config.js
checksum: b951a153138f42ee34ab7c0e17827637e25e2d7cb89e150ba378ba533f6d23a7
- filename: packages/contentstack-import-setup/eslint.config.js
checksum: d487ec978f0dc2471c68c618bf77f9cc7feb1d745d4bb1d84c28f218f132a2b3
- filename: packages/contentstack-import/eslint.config.js
checksum: 2aeebb2c8d4836490b8aacdda15a9951df41a405c72d5758ef656fe8a31314cc
- filename: packages/contentstack-export/eslint.config.js
checksum: bb451c301e84929aca8c284cb74636de5fd851b18654e07d0eae5e88b0a729ac
- filename: packages/contentstack-clone/eslint.config.js
checksum: 148993140399d12ae033602585f84c06c6a04b0a96b8d7811303211543962ba7
- filename: packages/contentstack-query-export/eslint.config.js
checksum: b87cecdd9c351066fbda88fc5984a48cade05b227a5ce5fbb84aed36805bf9ed
- filename: packages/contentstack-branches/eslint.config.js
checksum: 7b043a59fc9c523d5f772c1b81d6d4b6c65fb7f8edb8df73e48ba821e7298f0b
- filename: packages/contentstack-content-type/eslint.config.js
checksum: 26da78717a38d8e7464a069626213dd3010efa6e50f91efbc996f26b18346948
- filename: packages/contentstack-asset-management/src/utils/cs-assets-api-adapter.ts
checksum: 22708ea1e27a48a5741426a8e17e5d8b243864d877066861bc275d82393002eb
- filename: packages/contentstack-asset-management/src/export/assets.ts
checksum: b169481a31393a9036fbe4d41429bfee3d0f321629f01a72089469ddf5e8826d
- filename: packages/contentstack-asset-management/src/export/assets.ts
checksum: 0a4e04bc91f65cb695a4ca0415dc042b64e6563f0b4a3b718cd9a0ac0d1d7fab
version: '1.0'
checksum: 705ce49f9667e34fb64082025a41a1e3b950c1d2f968c3d4faf9461943ae599a
- filename: packages/contentstack-export/src/utils/export-config-handler.ts
checksum: 68351337b78f0962475498946fe34245a681182db756528c9ff6fab7153392e3
- filename: packages/contentstack-import-setup/src/utils/import-config-handler.ts
checksum: c13ca4996b3767fae9d2716fe9ae7d90d98b26012e064f42ea9fdd054f684761
- filename: packages/contentstack-import/src/utils/import-config-handler.ts
checksum: 999092528b445b6e9de6883150f02b56bf5050dc64129335d84246c157bfe303
version: ""
6 changes: 3 additions & 3 deletions packages/contentstack-apps-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/apps-cli",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.2",
"description": "App ClI",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-apps-cli",
Expand All @@ -22,9 +22,9 @@
],
"dependencies": {
"@apollo/client": "^3.14.1",
"@contentstack/cli-command": "~2.0.0-beta.8",
"@contentstack/cli-command": "~2.0.0-beta.9",
"@contentstack/cli-launch": "^1.10.0",
"@contentstack/cli-utilities": "~2.0.0-beta.9",
"@contentstack/cli-utilities": "~2.0.0-beta.10",
"adm-zip": "^0.5.17",
"chalk": "^5.6.2",
"lodash": "^4.18.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export default class Create extends BaseCommand<typeof Create> {

static flags: FlagInput = {
name: flags.string({
char: "n",
description: appCreate.NAME_DESCRIPTION,
}),
"app-type": flags.string({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default class Install extends AppCLIBaseCommand {
description: commonMsg.APP_UID,
}),
"stack-api-key": flags.string({
char: "k",
description: commonMsg.STACK_API_KEY,
}),
...AppCLIBaseCommand.baseFlags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class Reinstall extends AppCLIBaseCommand {
description: commonMsg.APP_UID,
}),
"stack-api-key": flags.string({
char: "k",
description: commonMsg.STACK_API_KEY,
}),
...AppCLIBaseCommand.baseFlags,
Expand Down
6 changes: 3 additions & 3 deletions packages/contentstack-asset-management/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/cli-asset-management",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "Contentstack Assets API adapter for export and import",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -30,8 +30,8 @@
],
"license": "MIT",
"dependencies": {
"@contentstack/cli-utilities": "~2.0.0-beta.9",
"lodash": "^4.17.21"
"@contentstack/cli-utilities": "~2.0.0-beta.10",
"lodash": "^4.18.1"
},
"oclif": {
"commands": "./lib/commands",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,12 @@ export class CSAssetsAdapter implements ICSAssetsAdapter {
pageSize = FALLBACK_AM_API_PAGE_SIZE,
fetchConcurrency = FALLBACK_AM_API_FETCH_CONCURRENCY,
): Promise<number> {
const baseParams: Record<string, unknown> = workspaceUid ? { workspace: workspaceUid } : {};
// include_publish_details=true so each asset carries its `publish_details` array (env/api_key/
// locale) — persisted in the chunk files and consumed by the import publish step.
const baseParams: Record<string, unknown> = {
include_publish_details: 'true',
...(workspaceUid ? { workspace: workspaceUid } : {}),
};
return this.paginate(
spaceUid,
`/api/spaces/${encodeURIComponent(spaceUid)}/assets`,
Expand Down Expand Up @@ -488,7 +493,10 @@ export class CSAssetsAdapter implements ICSAssetsAdapter {
}

async getWorkspaceAssets(spaceUid: string, workspaceUid?: string, pageSize = FALLBACK_AM_API_PAGE_SIZE, fetchConcurrency = FALLBACK_AM_API_FETCH_CONCURRENCY): Promise<unknown> {
const baseParams: Record<string, unknown> = workspaceUid ? { workspace: workspaceUid } : {};
const baseParams: Record<string, unknown> = {
include_publish_details: 'true',
...(workspaceUid ? { workspace: workspaceUid } : {}),
};
const items = await this.fetchAllPages(
spaceUid,
`/api/spaces/${encodeURIComponent(spaceUid)}/assets`,
Expand Down
6 changes: 3 additions & 3 deletions packages/contentstack-audit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/cli-audit",
"version": "2.0.0-beta.13",
"version": "2.0.0-beta.14",
"description": "Contentstack audit plugin",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/cli",
Expand All @@ -18,8 +18,8 @@
"/oclif.manifest.json"
],
"dependencies": {
"@contentstack/cli-command": "~2.0.0-beta.8",
"@contentstack/cli-utilities": "~2.0.0-beta.9",
"@contentstack/cli-command": "~2.0.0-beta.9",
"@contentstack/cli-utilities": "~2.0.0-beta.10",
"@oclif/core": "^4.11.4",
"chalk": "^5.6.2",
"fast-csv": "^4.3.6",
Expand Down
10 changes: 5 additions & 5 deletions packages/contentstack-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-bootstrap",
"description": "Bootstrap contentstack apps",
"version": "2.0.0-beta.20",
"version": "2.0.0-beta.22",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"scripts": {
Expand All @@ -16,10 +16,10 @@
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
},
"dependencies": {
"@contentstack/cli-cm-seed": "~2.0.0-beta.20",
"@contentstack/cli-command": "~2.0.0-beta.8",
"@contentstack/cli-utilities": "~2.0.0-beta.9",
"@contentstack/cli-config": "~2.0.0-beta.11",
"@contentstack/cli-cm-seed": "~2.0.0-beta.22",
"@contentstack/cli-command": "~2.0.0-beta.9",
"@contentstack/cli-utilities": "~2.0.0-beta.10",
"@contentstack/cli-config": "~2.0.0-beta.12",
"@oclif/core": "^4.11.4",
"inquirer": "12.11.1",
"mkdirp": "^2.1.6",
Expand Down
6 changes: 3 additions & 3 deletions packages/contentstack-branches/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@contentstack/cli-cm-branches",
"description": "Contentstack CLI plugin to do branches operations",
"version": "2.0.0-beta.8",
"version": "2.0.0-beta.9",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-command": "~2.0.0-beta.8",
"@contentstack/cli-command": "~2.0.0-beta.9",
"@oclif/core": "^4.11.4",
"@contentstack/cli-utilities": "~2.0.0-beta.9",
"@contentstack/cli-utilities": "~2.0.0-beta.10",
"chalk": "^5.6.2",
"just-diff": "^6.0.2",
"lodash": "^4.18.1"
Expand Down
8 changes: 4 additions & 4 deletions packages/contentstack-bulk-operations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/cli-bulk-operations",
"version": "2.0.0-beta.1",
"version": "2.0.0-beta.2",
"description": "Contentstack CLI plugin for bulk operations",
"author": "Contentstack CLI",
"homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-bulk-operations",
Expand All @@ -20,9 +20,9 @@
"/oclif.manifest.json"
],
"dependencies": {
"@contentstack/cli-asset-management": "1.0.0-beta.4",
"@contentstack/cli-command": "~2.0.0-beta.8",
"@contentstack/cli-utilities": "~2.0.0-beta.9",
"@contentstack/cli-asset-management": "1.0.0-beta.5",
"@contentstack/cli-command": "~2.0.0-beta.9",
"@contentstack/cli-utilities": "~2.0.0-beta.10",
"@contentstack/delivery-sdk": "^5.2.0",
"@contentstack/management": "^1.30.2",
"lodash": "^4.18.1",
Expand Down
33 changes: 9 additions & 24 deletions packages/contentstack-cli-cm-regex-validate/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from 'globals';
import oclif from 'eslint-config-oclif';
import oclifTypescript from 'eslint-config-oclif-typescript';

export default [
...tseslint.configs.recommended,

oclif,

oclifTypescript,

{
ignores: [
'lib/**/*',
],
ignores: ['lib/**/*', 'test/**/*', 'bin/*'],
},

{
files: ['src/**/*.ts'],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
Expand All @@ -27,25 +18,19 @@ export default [
...globals.node,
},
},

plugins: {
'@typescript-eslint': tseslint.plugin,
},

rules: {
'unicorn/prefer-module': 'off',
...js.configs.recommended.rules,
...tseslint.configs.recommended[1].rules,
'@typescript-eslint/no-require-imports': 'off',
'unicorn/no-array-for-each': 'off',
camelcase: 'off',
'camelcase': 'off',
'@typescript-eslint/no-unused-vars': 'error',
quotes: ['error', 'single', { avoidEscape: true }],
semi: ['error', 'never'],
'unicorn/import-style': 'off',
'unicorn/prefer-node-protocol': 'off',
'unicorn/consistent-function-scoping': 'off',
'quotes': ['error', 'single', { avoidEscape: true }],
'semi': ['error', 'never'],
'@typescript-eslint/ban-ts-comment': 'off',
'object-curly-spacing': ['error', 'never'],
'node/no-missing-import': 'off',
},
},
];
];
15 changes: 8 additions & 7 deletions packages/contentstack-cli-cm-regex-validate/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@contentstack/cli-cm-regex-validate",
"description": "Validate Fields with Regex Property of Content Type and Global Field in a Stack",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.2",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli-plugins/issues",
"dependencies": {
"@contentstack/cli-command": "~2.0.0-beta.8",
"@contentstack/cli-utilities": "~2.0.0-beta.9",
"@contentstack/cli-command": "~2.0.0-beta.9",
"@contentstack/cli-utilities": "~2.0.0-beta.10",
"@contentstack/management": "^1.30.2",
"cli-table3": "^0.6.5",
"inquirer": "12.11.1",
Expand All @@ -32,8 +32,8 @@
"jest": "^30.4.2",
"mocha": "^10.8.2",
"nyc": "^15.1.0",
"oclif": "^4.23.8",
"ts-jest": "^29.4.9",
"oclif": "^4.23.21",
"ts-jest": "^29.4.11",
"ts-node": "^10.9.2",
"typescript": "^5.9.3"
},
Expand Down Expand Up @@ -74,8 +74,8 @@
"postpack": "rm -f oclif.manifest.json",
"test": "jest --detectOpenHandles --silent",
"test:unit": "jest --detectOpenHandles --silent",
"posttest": "eslint src/**/*.ts",
"lint": "eslint src/**/*.ts",
"posttest": "eslint src/**/*.ts --fix",
"lint": "eslint src/**/*.ts --fix",
"clean": "rm -rf ./lib ./node_modules tsconfig.tsbuildinfo oclif.manifest.json",
"version": "oclif readme && git add README.md"
},
Expand All @@ -85,3 +85,4 @@
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,24 @@ export default class ValidateRegex extends Command {
static examples = [
'$ csdx cm:stacks:validate-regex',
'$ csdx cm:stacks:validate-regex -a <management_token_alias>',
'$ csdx cm:stacks:validate-regex -c',
'$ csdx cm:stacks:validate-regex -g',
'$ csdx cm:stacks:validate-regex -f <path/to/the/directory>',
'$ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g',
'$ csdx cm:stacks:validate-regex -a <management_token_alias> -c -g -f <path/to/the/directory>',
'$ csdx cm:stacks:validate-regex --contentType',
'$ csdx cm:stacks:validate-regex --globalField',
'$ csdx cm:stacks:validate-regex --filePath <path/to/the/directory>',
'$ csdx cm:stacks:validate-regex -a <management_token_alias> --contentType --globalField',
'$ csdx cm:stacks:validate-regex -a <management_token_alias> --contentType --globalField --filePath <path/to/the/directory>',
]
static flags: any = {
alias: flags.string({
char: 'a',
description: regexMessages.command.alias,
}),
contentType: flags.boolean({
char: 'c',
description: regexMessages.command.contentTypes,
}),
filePath: flags.string({
char: 'f',
description: regexMessages.command.filePath,
}),
globalField: flags.boolean({
char: 'g',
description: regexMessages.command.globalFields,
}),
}
Expand Down
Loading