【文件属性】:
文件名称:cf-yaml-validator:NPM模块CLI,用于验证Codefresh YAML
文件大小:133KB
文件格式:ZIP
更新时间:2021-05-03 16:15:51
JavaScript
Codefresh YAML验证器
用于验证Codefresh YAML的NPM模块/ CLI。
用开发。
安装
$ npm install @codefresh-io/yaml-validator -g
用法
命令行界面
# Search for a file named codefresh.yml in the current working directory and validate it
cyv validate
# Validate the specified codefresh.yml file
cyv validate --file /path/to/codefresh.yml
NPM模块
const cyv = require ( '@codefresh-io/yaml-validator' ) ;
const yaml = require ( 'js-yaml' )
【文件预览】:
cf-yaml-validator-master
----.eslintrc(1KB)
----yarn.lock(180KB)
----validator.js(3KB)
----LICENSE(1KB)
----__tests__()
--------suggest-argument.validator.unit.spec.js(14KB)
--------test-yamls()
--------schemas.unit.spec.js(3KB)
--------validator.unit.spec.js(267KB)
--------push-tag.validator.unit.spec.js(2KB)
----README.md(1006B)
----codefresh.yml(1KB)
----validator-error.js(188B)
----.gitignore(596B)
----schema()
--------1.0()
----package.json(1KB)