Comparing version 0.0.3 to 0.0.4
@@ -0,1 +1,2 @@ | ||
#!/usr/bin/env node | ||
"use strict"; | ||
@@ -25,5 +26,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
program | ||
.version("0.0.1") | ||
.version("0.0.4") | ||
.description("Convert CRDs to OpenAPI file") | ||
.option("-i, --in <dir>", "Input directory path") | ||
.option("-i, --in <dir>", "Input directory path [Required]") | ||
.option("-o, --out <file>", "Output file name") | ||
@@ -127,3 +128,3 @@ .option("-t, --title <text>", "Module title") | ||
if (!options.in) { | ||
console.error('Input directory is required'); | ||
console.error('Error: Input directory is required\n'); | ||
program.help(); | ||
@@ -130,0 +131,0 @@ } |
{ | ||
"name": "crdtoapi", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "CustomResourceDefinitions to OpensAPI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,2 +15,12 @@ # CustomResourceDefinitions to OpensAPI | ||
crdtoapi -i ./examples/forklift/ -o openapi.yaml | ||
``` | ||
## Build | ||
Run this scripts to lint and publish the package. | ||
``` bash | ||
npm run lint:fix | ||
npm run build | ||
npm publish | ||
``` |
@@ -0,1 +1,3 @@ | ||
#!/usr/bin/env node | ||
import { Command } from "commander"; | ||
@@ -11,3 +13,3 @@ import { load, dump } from "js-yaml"; | ||
program | ||
.version("0.0.3") | ||
.version("0.0.4") | ||
.description("Convert CRDs to OpenAPI file") | ||
@@ -14,0 +16,0 @@ .option("-i, --in <dir>", "Input directory path [Required]") |
Sorry, the diff of this file is not supported yet
236742
292
25