GithubHelp home page GithubHelp logo

antonyagustine / cli-cm-regex-validate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from contentstack/cli-cm-regex-validate

0.0 1.0 0.0 667 KB

A Contentstack CLI plugin that searches for invalid regexes within the content types and global fields of the stack

License: MIT License

JavaScript 0.41% TypeScript 99.45% Batchfile 0.14%

cli-cm-regex-validate's Introduction

cli-cm-regex-validate

Validate Fields with Regex Property of Content Type and Global Field in a Stack

oclif Version Downloads/week License

Usage

$ npm install -g @contentstack/cli-cm-regex-validate
$ csdx COMMAND
running command...
$ csdx (-v|--version|version)
@contentstack/cli-cm-regex-validate/1.0.0 linux-x64 node-v10.19.0
$ csdx --help [COMMAND]
USAGE
  $ csdx COMMAND
...

Commands

csdx cm:stacks:validate-regex

This command is used to find all the invalid regexes present in the content types and global fields of your stack.

USAGE
  $ csdx cm:stacks:validate-regex

OPTIONS
  -a, --alias=alias        Alias (name) assigned to the management token
  -c, --contentType        To find invalid regexes within the content types

  -f, --filePath=filePath  [optional] The path or the location in your file system where the CSV output file should be
                           stored.

  -g, --globalField        To find invalid regexes within the global fields

  -h, --help               To show the flags that can be used with this CLI command

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>

See code: src/commands/cm/stacks/validate-regex.ts

cli-cm-regex-validate's People

Contributors

aravindbuilt avatar contentstack-admin avatar khardik1698 avatar manishdsouza avatar nandeesh-gajula avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.