2.0.0 • Published 8 months ago

@adzerk/zerkel-cli v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

Zerkel Cli

Summary

Simple zerkel validator cli tool that uses the adzerk/zerkel library.

Usage

Cli options available with zerkel --help.

  1. Install the tool with npm install --global @adzerk/zerkel-cli.
  2. Run the command with zerkel validate [expression]
  3. That's it!

Output Format

title: Zerkel Validation Result
oneOf:
  - title: Zerkel Validation Error Result
    required:
      - body
      - result
    properties:
      body:
        title: Body
        type: object
        required:
          - error
          - version
        properties:
          error:
            title: Error
            description: Error information.
            type: string
          version:
            title: Version
            description: Parser version.
            type: string
            pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+$"
      result:
        title: Result
        description: Error result.
        const: error
  - title: Zerkel Validation Successful Result
    required:
      - body
      - result
    properties:
      body:
        title: Body
        type: object
        required:
          - code
          - version
        properties:
          code:
            title: Code
            description: Result information.
            type: string
          version:
            title: Version
            description: Parser version.
            type: string
            pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+$"
      result:
        title: Result
        description: Success result.
        const: success
2.0.0

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago