Skip to content

feat: add regex lookup to type and schema export#126

Merged
rs-amp merged 2 commits into
amplience:masterfrom
rs-amp:feature/export-type-regex
May 5, 2022
Merged

feat: add regex lookup to type and schema export#126
rs-amp merged 2 commits into
amplience:masterfrom
rs-amp:feature/export-type-regex

Conversation

@rs-amp
Copy link
Copy Markdown
Contributor

@rs-amp rs-amp commented Feb 7, 2022

This PR allows the content-type export and content-type-schema export commands to filter schemaIds with a regex. This behaves similarly to the other commands, in that filters starting and ending with a / are treated as a regex.

Example:

dc-cli content-type export folder --schemaId /1|2/

Will export content types with schema ID containing either 1 or 2.

You can provide multiple regex by providing multiple --schemaId arguments. Similar to how it worked before, if any --schemaId options don't match any types/schemas, an error will be thrown.

@rs-amp rs-amp marked this pull request as draft February 7, 2022 11:15
@rs-amp rs-amp marked this pull request as ready for review February 7, 2022 11:30
@rs-amp rs-amp merged commit 93a0cdd into amplience:master May 5, 2022
Pureball pushed a commit to cosnova/dc-cli that referenced this pull request Aug 22, 2023
This PR allows the `content-type export` and `content-type-schema export` commands to filter schemaIds with a regex. This behaves similarly to the other commands, in that filters starting and ending with a `/` are treated as a regex.

Example:

`dc-cli content-type export folder --schemaId /1|2/`

Will export content types with schema ID containing either 1 or 2.

You can provide multiple regex by providing multiple --schemaId arguments. Similar to how it worked before, if any --schemaId options don't match any types/schemas, an error will be thrown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants